Aufgrund einer Wartung wird GitLab am 18.01. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 18.01. between 8:00 and 9:00 am.

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

public class VAUConfig : MonoBehaviour {

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
7
	[Tooltip("Name or IP address where the VA server is running.")]
8
	public string Server = VAUAdapter.Server;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
9
10

	[Tooltip("TCP/IP port where the VA server is communicating.")]
11
	public int Port = VAUAdapter.Port;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
12
13

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

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

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