public static LittleBossIdleState GetInstance()
 {
     if (_instance == null)
     {
         _instance = new LittleBossIdleState();
     }
     return(_instance);
 }
 public override void Update(LittleBossAgent agent)
 {
     //Debug.Log(Vector3.Distance(agent.GetDestination(), agent.transform.position));
     if (Vector3.Distance(agent.GetDestination(), agent.transform.position) < 0.5f)
     {
         agent.SetState(LittleBossIdleState.GetInstance());
     }
 }
 private void Start()
 {
     _rb    = GetComponent <Rigidbody>();
     _state = LittleBossIdleState.GetInstance();
 }