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