示例#1
0
    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;
    }
示例#2
0
 public Entity GetEntity()
 {
     if (m_ControllerAction != null)
     {
         return(m_ControllerAction.GetEntity());
     }
     else
     {
         return(null);
     }
 }