// Use this for initialization void Awake() { Debug.Log("NextGameConnectionType: " + NextGameConnectionType); Inst = this; vnet = new VNet(); vnet.Init(); vTransformMan = GetComponent <VNetTransformManager>(); // This needs to update at least once a second if (TransformUpdatesPerSecond == 0) { TransformUpdatesPerSecond = 1; } NoConnection = true; LocalIsHost = false; LocalIsClient = false; StartAttemptToConnect(); }
void OnDestroy() { Inst = null; vTransformMan = null; }