Commented out all print statemetns to minimize unity editor lag
This commit is contained in:
+15
-15
@@ -171,7 +171,7 @@ public class GMScript : MonoBehaviour
|
|||||||
GameObject[] party = GameObject.FindGameObjectsWithTag("Party");
|
GameObject[] party = GameObject.FindGameObjectsWithTag("Party");
|
||||||
foreach(GameObject memeber in party) GameObject.Destroy(memeber);
|
foreach(GameObject memeber in party) GameObject.Destroy(memeber);
|
||||||
|
|
||||||
print("The Super Robo Squad has been destroyed! Try again!");
|
//print("The Super Robo Squad has been destroyed! Try again!");
|
||||||
|
|
||||||
gameover = true;
|
gameover = true;
|
||||||
|
|
||||||
@@ -186,7 +186,7 @@ public class GMScript : MonoBehaviour
|
|||||||
GameObject[] enemy = GameObject.FindGameObjectsWithTag("Enemy");
|
GameObject[] enemy = GameObject.FindGameObjectsWithTag("Enemy");
|
||||||
foreach(GameObject parts in enemy) GameObject.Destroy(parts);
|
foreach(GameObject parts in enemy) GameObject.Destroy(parts);
|
||||||
|
|
||||||
print("The enemy robot has been destroyed! Congrats!");
|
//print("The enemy robot has been destroyed! Congrats!");
|
||||||
|
|
||||||
victory = false;
|
victory = false;
|
||||||
gameover = true;
|
gameover = true;
|
||||||
@@ -350,7 +350,7 @@ public class GMScript : MonoBehaviour
|
|||||||
|
|
||||||
attack.SetTrigger("AttackTrigger");
|
attack.SetTrigger("AttackTrigger");
|
||||||
|
|
||||||
print(PartyColours[OrderNumbers[i]-1]);
|
//print(PartyColours[OrderNumbers[i]-1]);
|
||||||
|
|
||||||
//SETTING AND OUTPUT OF ROBOT COLOUR
|
//SETTING AND OUTPUT OF ROBOT COLOUR
|
||||||
robotColour = (Colours)PartyColours[OrderNumbers[i]-1];
|
robotColour = (Colours)PartyColours[OrderNumbers[i]-1];
|
||||||
@@ -640,7 +640,7 @@ public class GMScript : MonoBehaviour
|
|||||||
&& !shield && !enemyShield)
|
&& !shield && !enemyShield)
|
||||||
{
|
{
|
||||||
|
|
||||||
print("Weakness hit!");
|
//print("Weakness hit!");
|
||||||
weakPointHit = true;
|
weakPointHit = true;
|
||||||
|
|
||||||
if(EnemyKillSequence[1] == -1)
|
if(EnemyKillSequence[1] == -1)
|
||||||
@@ -692,8 +692,8 @@ public class GMScript : MonoBehaviour
|
|||||||
|
|
||||||
partyHealth += (int)modifiedHeal;
|
partyHealth += (int)modifiedHeal;
|
||||||
|
|
||||||
print(partyMember + " healed the team for " + modifiedHeal + " HP");
|
//print(partyMember + " healed the team for " + modifiedHeal + " HP");
|
||||||
print("Party health is now: " + partyHealth + " HP");
|
//print("Party health is now: " + partyHealth + " HP");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -701,8 +701,8 @@ public class GMScript : MonoBehaviour
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
print(partyMember + " buffed the team!");
|
//print(partyMember + " buffed the team!");
|
||||||
print("Party health is now: " + partyHealth + " HP");
|
//print("Party health is now: " + partyHealth + " HP");
|
||||||
buff = true;
|
buff = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -722,7 +722,7 @@ public class GMScript : MonoBehaviour
|
|||||||
|
|
||||||
if(enemyShield)
|
if(enemyShield)
|
||||||
{
|
{
|
||||||
print("Enemy Shield Hit!");
|
//print("Enemy Shield Hit!");
|
||||||
EnemyShield.SetActive(false);
|
EnemyShield.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -750,8 +750,8 @@ public class GMScript : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
enemyHealth -= (int)modifiedAttack;
|
enemyHealth -= (int)modifiedAttack;
|
||||||
print(partyMember + " robot attacked for " + modifiedAttack);
|
//print(partyMember + " robot attacked for " + modifiedAttack);
|
||||||
print("Enemy robot health is now: " + enemyHealth + " HP");
|
//print("Enemy robot health is now: " + enemyHealth + " HP");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -779,7 +779,7 @@ public class GMScript : MonoBehaviour
|
|||||||
// ADD DAMAGE IF EITHER OF THE ARMS MATCHES THE COLOUR OF THE ANTENNA
|
// ADD DAMAGE IF EITHER OF THE ARMS MATCHES THE COLOUR OF THE ANTENNA
|
||||||
if(EnemyPartsColours[0] == attackColour)
|
if(EnemyPartsColours[0] == attackColour)
|
||||||
{
|
{
|
||||||
print("Antenna Buff!");
|
//print("Antenna Buff!");
|
||||||
modifier += 2;
|
modifier += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -799,7 +799,7 @@ public class GMScript : MonoBehaviour
|
|||||||
{
|
{
|
||||||
|
|
||||||
modifiedAttack = 0;
|
modifiedAttack = 0;
|
||||||
print("Shield Hit!");
|
//print("Shield Hit!");
|
||||||
Shield.SetActive(false);
|
Shield.SetActive(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -811,8 +811,8 @@ public class GMScript : MonoBehaviour
|
|||||||
shield = false;
|
shield = false;
|
||||||
|
|
||||||
partyHealth -= modifiedAttack;
|
partyHealth -= modifiedAttack;
|
||||||
print((Colours)attackColour + " enemy robot arm attacked for " + modifiedAttack);
|
//print((Colours)attackColour + " enemy robot arm attacked for " + modifiedAttack);
|
||||||
print("Party health is now: " + partyHealth + " HP");
|
//print("Party health is now: " + partyHealth + " HP");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user