public void StartGame() { IsGameRunning = true; OnStartGame?.Invoke(); LevelController.StartLevel(); WaveController.InitWaves(); PlayerController.StartLevel(); TowerController.StartLevel(); }
public void Init() { _uIManager = GameClient.Get <IUIManager>(); MainCamera = GameObject.Find("MainCamera").GetComponent <Camera>(); MainCamera.fieldOfView = 2 * Mathf.Atan(Mathf.Tan(_fixedHorizontalFOV * Mathf.Deg2Rad * 0.5f) / (MainCamera.aspect / (4f / 3f))) * Mathf.Rad2Deg; LevelController = new LevelController(); EnemyController = new EnemyController(); WaveController = new WaveController(); PlayerController = new PlayerController(); TowerController = new TowerController(); }