public override void ClickRightMouseEvent(object sender, GameEventArgs e) { base.ClickRightMouseEvent(sender, e); if (!IsSelected || IsOnBuilding) { return; } MouseClickEventArgs m = e as MouseClickEventArgs; if (m.dataGameobject.layer == 11) { _navMeshAgent.enabled = false; _FSMSystemManager.ControlStateTransition(StateID.Move); Vector3 pos = CrowdBehaviorManager.Instance.GetBattle_FormationPos(); Debug.Log(pos); moveState.SetMoveTargetPos(m.ClickPosition); } else if (m.dataGameobject.tag == "Mine") { _navMeshAgent.enabled = false; miningState.MinePosition = m.dataGameobject.transform.position; _FSMSystemManager.ControlStateTransition(StateID.Mining); harvesterState = HarvesterState.mine; } }