Beispiel #1
0
 public override void getMovement()
 {
     if (target == null)
     {
         base.getMovement();
         return;
     }
     if (state.GetType() == typeof(Patrol))
     {
         getChaseMovement();
     }
     if (state.GetType() == typeof(Chase))
     {
         getChaseMovement();
     }
 }
Beispiel #2
0
 public void setState(BossState bs)
 {
     state = bs;
     if (bs.GetType() == typeof(BossBreak))
     {
         stateName = ScreenView.bossStates.EBossBreak;
     }
     if (bs.GetType() == typeof(BossDefense))
     {
         stateName = ScreenView.bossStates.EBossDefense;
     }
     if (bs.GetType() == typeof(BossDeath))
     {
         stateName = ScreenView.bossStates.EBossDeath;
     }
     if (bs.GetType() == typeof(BossEntry))
     {
         stateName = ScreenView.bossStates.EBossEntry;
     }
 }