Example #1
0
    /********************************************************************************************/
    /******************************************* Buttons ****************************************/
    /********************************************************************************************/


    public void AttackPress()
    {
        // When you hit that attack button
        //print ("ATTACKKKKK");
        combat.HideBattleMenu();
        //combat.CreateSelectOptions ();

        Ability temp = ScriptableObject.CreateInstance("Ability") as Ability;

        temp.init("Basic Attack", combat.actionFrom);
        combat.actionToDo = temp;


        List <CharacterClass> tempChars = combat.getEnemiesInRange(1, "Player");

        if (tempChars != null)
        {
            combat.HideBattleMenu();
            combat.ShowSelectMenu(tempChars);
        }
        else
        {
            print("NOONE IN MELEE RANGE");
        }
        //combat.PlayerAttack(0,0);
    }