예제 #1
0
 private void Start()
 {
     gameSceneController = FindObjectOfType <GameSceneController>();
     gameSceneController.AddObserver(this);
     gameSceneController.ScoreUpdatedOnKill += GameSceneController_ScoreUpdatedOnKill;
     gameSceneController.LifeLost           += HideShip;
 }
예제 #2
0
 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;
    }