void OnCollisionEnter2D(Collision2D coll) { if (coll.gameObject.name == "pipe_front") { rb.isKinematic = false; load.LoadNextLevel(); } }
public void nextline() { index++; if (index == 3) { load.LoadNextLevel(); } instruction.text = text[index]; }