Esempio n. 1
0
    void SetStatics()
    {
        if (_inputManager && !inputManager)
            inputManager = _inputManager;

        if (!_instance)
            _instance = this;

        if (_playerControler && !playerControler)
            playerControler = _playerControler;

        if (_UIControler && !uiControler)
            uiControler = _UIControler;

        if (_AudioControler && !audioControler)
            audioControler = _AudioControler;

        if (_DropTable && !dropTable)
            dropTable = _DropTable;

        if (_optionsMenu && !optionsMenu)
            optionsMenu = _optionsMenu;

        if (_UICamera && !UICamera)
            UICamera = _UICamera;

        if (_TutorialControler && !TutorialControler)
            TutorialControler = _TutorialControler;
    }
Esempio n. 2
0
 public void OnDestroy()
 {
     
     dropTable = null;
     audioControler = null;
     uiControler = null;
     playerControler = null;
     inputManager = null;
     _instance = null;
     _stageControler = null;
     _Destroyed = true;
 }