Exemplo n.º 1
0
    void Awake()
    {
        audioObserver = new AudioObserver();
        achievementObserver = new AchievementObserver();
        visualEffectObserver = new VisualEffectObserver();

        gameStateManager = new GameStateManager();

        gameStateManager.SetObservers(audioObserver, achievementObserver, visualEffectObserver);
        //		unitFactoryManager.Register(gameStateManager.getActiveCombatState());
        //		unitFactoryManager.Register(gameStateManager.getExecuteCombatState());
    }
 public void SetObservers(AudioObserver audioObserver,AchievementObserver achievementObserver,VisualEffectObserver visualEffectObserver)
 {
     this.audioObserver = audioObserver;
     this.achievementObserver = achievementObserver;
     this.visualEffectObserver = visualEffectObserver;
 }