private void Start() { gameSceneController = FindObjectOfType <GameSceneController>(); gameSceneController.AddObserver(this); gameSceneController.ScoreUpdatedOnKill += GameSceneController_ScoreUpdatedOnKill; gameSceneController.LifeLost += HideShip; }
private void Start() { gameSceneController = FindObjectOfType <GameSceneController>(); gameSceneController.ScoreUpdate += UpdateScore; gameSceneController.LifeLost += GameSceneController_LifeLost; gameSceneController.AddObserver(this); }
private void Start() { GameScene = FindObjectOfType <GameSceneController>(); GameScene.AddObserver(this); GameScene.EnemyHandler += GameScene_EnemyHandler; GameScene.LifeLost += HideShip; }