protected override void OnBeginControll(IControllerAction controllerAction) { InputManager.instance.SetInputController(this); controllerAction.ShowMoveAndAttackRange(); GameEvent.HexRoomEvent.onLeftClickCell.AddListener(OnLeftClickCell); GameEvent.HexRoomEvent.onRightClickCell.AddListener(OnRightClickCell); controllerAction.RegisterActionEvent(OnActionComplete); m_PropertyComponent = controllerAction.GetEntity().GetCComponent <CPropertyComponent>(); m_NextStepAttackEntity = null; }
public Entity GetEntity() { if (m_ControllerAction != null) { return(m_ControllerAction.GetEntity()); } else { return(null); } }