Beispiel #1
0
 protected virtual void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 private void Start()
 {
     _playerTtlInRoom = PhotonNetwork.CurrentRoom.PlayerTtl;
     _gameManager     = VRDFMultiplayerGameManager.Instance;
 }