Ejemplo n.º 1
0
    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();
    }
Ejemplo n.º 2
0
 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();
         }
     }
 }
Ejemplo n.º 3
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();
            }
        }
    }
Ejemplo n.º 4
0
    // -----------------------------------------------------------------------//

    void displayAbilityButtons()
    {
        if (!prefs.GetPrefBool("NewAbility1")) // don't have ability 1
        {
            newabil.SetActive(true);
            noabil.SetActive(false);

            abil1.SetActive(true);
            abil2.SetActive(false);
        }
        else // have ability 1
        {
            if (PlayerRank >= 2)
            {
                newabil.SetActive(false);
                noabil.SetActive(true);

                abil1.SetActive(false);
                abil2.SetActive(false);
            }
            else // PlayerRank = 1 & has a1
            {
                if (!prefs.GetPrefBool("NewAbility2")) // don't have a2
                {
                    newabil.SetActive(true);
                    noabil.SetActive(false);

                    abil1.SetActive(false);
                    abil2.SetActive(true);
                }
                else
                {
                    newabil.SetActive(false);
                    noabil.SetActive(true);

                    abil1.SetActive(false);
                    abil2.SetActive(false);
                }
            }
        }
    }
Ejemplo n.º 5
0
    // Start is called before the first frame update
    void Start()
    {
        Scene s = SceneManager.GetActiveScene();

        if (s.buildIndex == 6 || s.name == "6Sparring")
        {
            // Debug.Log("You are in Scene 6!");
            bool doSparring;
            prefs.SavePrefBool("SparringMatch", true);
            doSparring = prefs.GetPrefBool("SparringMatch");
            Debug.Log("Sparring Status set to: " + doSparring);
            sceneChanger.GoSceneNumber(sceneNum);
        }
    }