コード例 #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());
    }
コード例 #2
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());
    }
コード例 #3
0
 public void SetObservers(AudioObserver audioObserver, AchievementObserver achievementObserver, VisualEffectObserver visualEffectObserver)
 {
     this.audioObserver        = audioObserver;
     this.achievementObserver  = achievementObserver;
     this.visualEffectObserver = visualEffectObserver;
 }
コード例 #4
0
 public void SetObservers(AudioObserver audioObserver,AchievementObserver achievementObserver,VisualEffectObserver visualEffectObserver)
 {
     this.audioObserver = audioObserver;
     this.achievementObserver = achievementObserver;
     this.visualEffectObserver = visualEffectObserver;
 }