Example #1
0
 void Start()
 {
     instance = this;
     rb       = GetComponent <Rigidbody>();
     UpdateScore(false);
     SpawnDrops();
 }
Example #2
0
 void OnTriggerEnter(Collider other)
 {
     BallController.UpdateScore(true);
     Destroy(gameObject);
 }