// Event for collsion void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag != "ball") { return; } my_gamemanager.UpdateScore(); down = true; tick = duration; GetComponent <Collider> ().enabled = false; }
// Event for collsion void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag != "ball") { return; } my_gamemanager.UpdateScore(); down = true; tick = duration; GetComponent <Collider> ().enabled = false; }