Exemple #1
0
    // Use this for initialization
    void Start()
    {
        _scoreManager        = GetComponent <ScoreManager> ();
        _comboManager        = GetComponent <ComboManager> ();
        _moraleManager       = GetComponent <MoraleManager> ();
        _playerHealthManager = GetComponent <PlayerHealthManager> ();
        _enemyHealthManager  = GetComponent <EnemyHealthManager> ();

        _playerHealthManager.BindDeathEvent(Lose);
        _enemyHealthManager.BindDeathEvent(Win);
    }