public static BossFollowPlayerState GetInstance()
 {
     if (_instance == null)
     {
         _instance = new BossFollowPlayerState();
     }
     return(_instance);
 }
 public override void Update(BossAgent agent)
 {
     if (agent.GetIsPlayerInRange())
     {
         agent.SetState(BossFollowPlayerState.GetInstance());
     }
     if (agent.GetIsBaseInAttackRange())
     {
         agent.SetState(BossAttackState.GetInstance());
     }
 }