Added sign that appears when player tries to start attack without selecting any party members

This commit is contained in:
Gregory Campbell
2020-04-27 18:54:34 -04:00
parent 600df48355
commit 3ae841d886
4 changed files with 201 additions and 10 deletions
+17
View File
@@ -15,6 +15,7 @@ public class GMScript : MonoBehaviour
public GameObject Victory;
public GameObject GameOver;
public GameObject AttackStopSign;
public GameObject ShieldHit;
public GameObject WeakPointHit;
@@ -143,6 +144,11 @@ public class GMScript : MonoBehaviour
StartCoroutine(AttackParty(robotColour));
} else if (hit.collider.gameObject.tag == "Attack"
&& PartyMemberOrder[0] == null) {
StartCoroutine(AttackStop());
}
}
@@ -272,6 +278,17 @@ public class GMScript : MonoBehaviour
}
IEnumerator AttackStop()
{
AttackStopSign.SetActive(true);
yield return new WaitForSeconds(1);
AttackStopSign.SetActive(false);
}
IEnumerator AttackParty(Colours robotColour)
{