Beispiel #1
0
    protected void OnFinalPerformanceChangeEventHandler(PlayerPerformanceManager.Performance final)
    {
        GameObject currentBoss = enemyObjs[0];
        Enemy      nextBoss    = bossChanges[final];

        enemyObjs.Remove(currentBoss);
        enemies.Remove(currentBoss);
        enemyObjs.Add(nextBoss.gameObject);
        enemies.Add(nextBoss.gameObject, nextBoss);
        Debug.Log("Final Performance: " + final.ToString());
    }
    public virtual void SetDrawback(PlayerPerformanceManager.Performance performance)
    {
        switch (performance)
        {
        case PlayerPerformanceManager.Performance.BAD:
            DecreaseDrawback();
            break;

        case PlayerPerformanceManager.Performance.NEUTRAL:
            return;

        case PlayerPerformanceManager.Performance.GOOD:
            IncreaseDrawback();
            break;
        }
    }
 private void OnFinalPerformanceChangeEventHandler(PlayerPerformanceManager.Performance performance)
 {
     this.performance = performance;
 }