protected virtual void OnDestroy() { if (Instance == this) { Instance = null; } }
protected virtual void Awake() { if (Instance != null) { VRDF_Components.DebugVRDFMessage("Another instance of VRDFConnectionManager exist. Be sure to only have one VRDFConnectionManager in your Scene.", true); Destroy(this); return; } Instance = this; }
private void Start() { _playerTtlInRoom = PhotonNetwork.CurrentRoom.PlayerTtl; _gameManager = VRDFMultiplayerGameManager.Instance; }