public void populateEnemyObject()
 {
     prevMove = -1; // Previous move doesn't exist because just started
     if (prefs.GetPrefBool("Sparring"))
     {
         // If training, populate with player's stats -1 each
         populateSparringEnemyObject();
     }
     else
     {
         PlayerRank = prefs.GetPref("PlayerRank");
         if (PlayerRank >= 3)
         {
             populateRank2EnemyObject();
         }
         if (PlayerRank == 2)
         {
             populateRank2EnemyObject();
             // CHANGE THIS BACK TO RANK 1 ENEMY LATER
             // populateRank1EnemyObject();
         }
         else
         {
             populateRank2EnemyObject();
             // CHANGE THIS BACK T C ENEMY LATER
             // populateRankCEnemyObject();
         }
     }
 }
Example #2
0
    public void populateEnemyObject()
    {
        prevMove    = -1; // Previous move doesn't exist because just started
        turnCounter = 0;
        Dazed       = false;

        if (prefs.GetPrefBool("Sparring"))
        {
            // If training, populate with player's stats -1 each
            populateSparringEnemyObject();
        }
        else
        {
            PlayerRank = prefs.GetPref("PlayerRank");
            Debug.Log("player rank: " + PlayerRank);
            if (PlayerRank == 1)
            {
                Debug.Log("POPULATE CHAMPION");
                populateRankCEnemyObject();
            }
            else if (PlayerRank == 2)
            {
                Debug.Log("POPULATE RANK1");
                populateRank1EnemyObject();
            }
            else
            {
                Debug.Log("POPULATE RANK2");
                populateRank2EnemyObject();
            }
        }
    }
    public void populatePlayerObject()
    {
        PWR          = prefs.GetPref("PlayerPower");
        SPD          = prefs.GetPref("PlayerSpeed");
        TGH          = prefs.GetPref("PlayerTough");
        SundayPunch  = prefs.GetPrefBool("NewAbility1");
        ButterBee    = prefs.GetPrefBool("NewAbility2");
        DynamiteBlow = false;
        prevMove     = -1; // Previous move doesn't exist because just started

        populateDerivedValues();
    }