public void StartGame() { over = false; reallyOver = false; currenttime = Time.time; starttime = currenttime; timer.StartTimer(); Instantiate(walllaser, new Vector3(8.75f, 0, 0), Quaternion.Euler(0, 0, 90)); Instantiate(walllaser, new Vector3(-8.75f, 0, 0), Quaternion.Euler(0, 0, 90)); Instantiate(walllaser, new Vector3(0, 4.87f, 0), Quaternion.identity); Instantiate(walllaser, new Vector3(0, -4.87f, 0), Quaternion.identity); }
public void StartGame() { over = false; currenttime = Time.time; starttime = currenttime; timer.StartTimer(); if (parameters.corner) { Instantiate(damager, new Vector3(-8.2f, 4.3f, 0), Quaternion.identity); Instantiate(damager, new Vector3(-8.2f, -4.3f, 0), Quaternion.identity); Instantiate(damager, new Vector3(8.2f, 4.3f, 0), Quaternion.identity); Instantiate(damager, new Vector3(8.2f, -4.3f, 0), Quaternion.identity); } if (parameters.side) { Instantiate(walllaser, new Vector3(8.75f, 0, 0), Quaternion.Euler(0, 0, 90)); Instantiate(walllaser, new Vector3(-8.75f, 0, 0), Quaternion.Euler(0, 0, 90)); Instantiate(walllaser, new Vector3(0, 4.87f, 0), Quaternion.identity); Instantiate(walllaser, new Vector3(0, -4.87f, 0), Quaternion.identity); } }