private void Update() { if (Input.GetKey("space")) { rndLvlLoad.NextLevel(); } }
private void OnCollisionEnter2D(Collision2D collision) { RandomLevelLoad.NextLevel(); }