public void Ultimate() { anim.SetTrigger("atq1"); if (Mestre.GetLevel() == 0) { StartCoroutine(Level0()); } if (Mestre.GetLevel() == 1) { StartCoroutine(Level1()); } if (Mestre.GetLevel() == 2) { StartCoroutine(Level2()); } }
public void Follow() { anim.SetTrigger("atq2"); if (Mestre.GetLevel() == 0) { Level0(); } if (Mestre.GetLevel() == 1) { Level1(); } if (Mestre.GetLevel() == 2) { Level2(); } }
private IEnumerator EFloor() { List <float> PosListx = new List <float>(); List <float> PosListz = new List <float>(); float xPosition; float zPosition; for (int i = 0; i < Quantity * 0.5 * (Mestre.GetLevel() + 1); i++) { xPosition = Random.Range(-19, 19); PosListx.Add(xPosition); zPosition = Random.Range(-17, 17); PosListz.Add(zPosition); Instantiate(PrefabHelper, new Vector3(xPosition, 0, zPosition), Quaternion.identity); } yield return(new WaitForSeconds(Delay)); for (int i = 0; i < Quantity * 0.5 * (Mestre.GetLevel() + 1); i++) { Instantiate(PrefabPunches, new Vector3(PosListx[i], 0.7f, PosListz[i]), Quaternion.identity); } }