Exemple #1
0
    //Choose and perform an action from the available actions list.
    //The action is sent to the chosen target.
    public void ExecuteAction()
    {
        Energy currentAction = ChooseAction();

        currentAction.Execute();

        //TEMP movement code for visual feedback
        if (!down)
        {
            transform.position += new Vector3(0, -0.05f, 0);
            down = true;
        }
    }