Пример #1
0
        public bool GetAttackToken()
        {
            if (actorsManager == null)
            {
                actorsManager = GameController.instance.sceneController.GetActorsManager();
            }

            return(hasAttackToken = actorsManager.GetAttackToken());
        }
Пример #2
0
        private void PrepareLevel()
        {
            actorsManager   = new AIActorsManager();
            spawnPoints     = FindObjectsOfType <SpawnPoint>();
            triggersManager = new TriggersManager(FindObjectsOfType <Trigger>());
            levelSettings   = FindObjectOfType <LevelSettings>();


            triggersManager.Init();

            if (levelSettings != null)
            {
                GameController.instance.playerManager.TeleportToPoint(levelSettings.spawnPointId);
                levelSettings.Apply(GameController.instance);
            }
        }