Пример #1
0
    private void UntimedActionCompleted(int entityID, RPGGameEvent actionType)
    {
        MenuSystem.ClearOptions(entityID);

        var action = this.EntityManager.GetComponent <ActionComponent>(entityID);

        if (action != null && action.ActionType == RPGGameEvent.FallStarted)
        {
            action.ActionType = RPGGameEvent.None;
        }
    }
Пример #2
0
    private void TimedActionCompleted(int entityID, ActionComponent action)
    {
        MenuSystem.ClearOptions(entityID);

        CallOnActionCompleted = ActionCompletedEvent(action.ActionType);
        if (CallOnActionCompleted != null)
        {
            CallOnActionCompleted.Invoke(new ActionCompletedData()
            {
                ActorID = entityID, TargetID = action.TargetID, ActionType = action.ActionType
            });
        }
    }