public override void getMovement() { if (target == null) { base.getMovement(); return; } if (state.GetType() == typeof(Patrol)) { getChaseMovement(); } if (state.GetType() == typeof(Chase)) { getChaseMovement(); } }
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; } }