Exemple #1
0
 void GMModule()
 {
     powerLevel    = GM.numberOfPlayerBatteries;
     numbOfBossDef = GM.numOfBossesBeat;
     //tracks the state of the guns were last in
     if (GM.playerRHGunState == GameManager.StateGun.lvl1)
     {
         rHGunState = StateGun.lvl1;
     }
     if (GM.playerRHGunState == GameManager.StateGun.lvl2)
     {
         rHGunState = StateGun.lvl2;
     }
     if (GM.playerRHGunState == GameManager.StateGun.lvl3)
     {
         rHGunState = StateGun.lvl3;
     }
     if (GM.dualWieldWeapons == true)
     {//it checks to see if it was dual weild and to see what kind of thelvl it was at too
         leftHandIsEquipped = true;
         if (GM.playerLHGunState == GameManager.StateGun.lvl1)
         {
             lHGunState = StateGun.lvl1;
         }
         if (GM.playerLHGunState == GameManager.StateGun.lvl2)
         {
             lHGunState = StateGun.lvl2;
         }
         if (GM.playerLHGunState == GameManager.StateGun.lvl3)
         {
             lHGunState = StateGun.lvl3;
         }
     }
     //tracks the players color
     if (GM.playerColorState == GameManager.StatePlayerColor.blue)
     {
         colorState = StateArmorColorSet.blue;
     }
     if (GM.playerColorState == GameManager.StatePlayerColor.green)
     {
         colorState = StateArmorColorSet.green;
     }
     if (GM.playerColorState == GameManager.StatePlayerColor.red)
     {
         colorState = StateArmorColorSet.red;
     }
     //tracks the level of armor, light, medium and heavy.
     if (GM.playerArmorState == GameManager.StateArmor.light)
     {
         armorState = StateArmor.light;
     }
     if (GM.playerArmorState == GameManager.StateArmor.medium)
     {
         armorState = StateArmor.medium;
     }
     if (GM.playerArmorState == GameManager.StateArmor.heavy)
     {
         armorState = StateArmor.heavy;
     }
 }
Exemple #2
0
 public void ChangeToColorGREEN()
 {
     if (greenBossHasBeenDefeated || SceneManager.GetActiveScene() == SceneManager.GetSceneByName("Endless"))
     {
         Debug.Log("Changing to GREEN");
         colorState = StateArmorColorSet.green;
     }
     else
     {
         UI.greenButtonLabel.text = "Need To Defeat The Green Boss";
     }
 }
Exemple #3
0
 public void ChangeToColorRED()
 {
     if (redBossHasBeenDefeated || SceneManager.GetActiveScene() == SceneManager.GetSceneByName("Endless"))
     {
         Debug.Log("Changing to red");
         colorState = StateArmorColorSet.red;
     }
     else
     {
         UI.redButtonLabel.text = "Need To Defeat The Red Boss";
     }
 }
Exemple #4
0
 //------------------------------------------------------changing color section-------------------------------------------------------------------------
 //these public methods are for the UI boss win screen buttons are directly tired to them.
 //these 2 functions are made to change the the color of the armorset the player is using
 //it checks to see if the right boss was defeated in a simple bool if not you cannot access that state of color
 public void ChangeToColorBlue()
 {
     Debug.Log("Changing to bluee");
     colorState = StateArmorColorSet.blue;
 }