VAUConfig.cs 777 Bytes
Newer Older
1 2 3 4 5 6
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VAUConfig : MonoBehaviour {

7
	[Tooltip("Name or IP address where the VA server is running.")]
8
	public string Server = VAUAdapter.Server;
9 10

	[Tooltip("TCP/IP port where the VA server is communicating.")]
11
	public int Port = VAUAdapter.Port;
12 13

	[Tooltip("Add an additional path where to find files")]
14
	public string AdditionalSearchPath = "";
15 16

	[Tooltip("Resets server on startup")]
Dipl.-Ing. Jonas Stienen's avatar
WIP  
Dipl.-Ing. Jonas Stienen committed
17
	public bool ResetOnStart = true;
18 19

	[Tooltip("Resets server when stopping")]
Dipl.-Ing. Jonas Stienen's avatar
WIP  
Dipl.-Ing. Jonas Stienen committed
20
	public bool ResetOnStop = true;
21 22

	// Use this for initialization
Dipl.-Ing. Jonas Stienen's avatar
WIP  
Dipl.-Ing. Jonas Stienen committed
23 24
	void Awake()
	{
25 26
		VAUAdapter.Server = Server;
		VAUAdapter.Port = Port;
Dipl.-Ing. Jonas Stienen's avatar
WIP  
Dipl.-Ing. Jonas Stienen committed
27 28
		VAUAdapter.ResetOnStart = ResetOnStart;
		VAUAdapter.ResetOnStop = ResetOnStop;
29 30
	}
}