Esempio n. 1
0
    /// <summary>
    /// Execute the old man's action
    /// </summary>
    void ExecuteAction()
    {
        if (currentAction == null)
        {
            return;
        }

        //Start the action if it is not started
        if (!currentAction.Active)
        {
            currentAction.StartAction(this);
        }

        //Execute the action
        currentAction.ExecuteAction(this);
    }