public bool GetAttackToken() { if (actorsManager == null) { actorsManager = GameController.instance.sceneController.GetActorsManager(); } return(hasAttackToken = actorsManager.GetAttackToken()); }
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); } }