Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        getTurn();

        if (AttackBoost.boostAppliedWarrior == true && AttackBoost.statRevertedWarrior == false && currentTurn == AttackBoost.boostEndWarrior)
        {
            WarriorScript.setAttackStat(10);
            AttackBoost.statRevertedWarrior = true;
            print("Stat reverted for Warrior");
        }        //end if

        if (AttackBoost.boostAppliedMage == true && AttackBoost.statRevertedMage == false && currentTurn == AttackBoost.boostEndMage)
        {
            MageScript.setAttackStat(5);
            AttackBoost.statRevertedMage = true;
            print("Stat reverted for Mage");
        }        //end if

        if (WarriorScript.getCurrentHP() > 100)
        {
            WarriorScript.setHP(100);
        }        //end if

        if (MageScript.getCurrentHP() > 80)
        {
            MageScript.setHP(80);
        }        //end if
    }
Ejemplo n.º 2
0
 public void onWarriorBoost()
 {
     statRevertedWarrior = false;
     boostEndWarrior     = BattleTurn.currentTurn + 5;
     boostAppliedWarrior = true;
     WarriorScript.setAttackStat(WarriorScript.getAttackStat() + 10);
     BattleTurn.currentTurn++;
     print(WarriorScript.getAttackStat());
 }    //end onWarriorBoost