private void OnCollisionEnter(Collision collision) { if (collision.gameObject.layer == 8) { if (back) { demoCanvas.PreviousPage(); } else { demoCanvas.nextPage(); } } }
private void OnCollisionEnter(Collision collision) { if (collision.gameObject.layer == 8) { if (back) { demoCanvas.PreviousPage(); } else { demoCanvas.nextPage(); } } }