예제 #1
0
 void Start()
 {
     instance = this;
     rb       = GetComponent <Rigidbody>();
     UpdateScore(false);
     SpawnDrops();
 }
예제 #2
0
파일: Drop.cs 프로젝트: lunarDustX/CoopRace
 void OnTriggerEnter(Collider other)
 {
     BallController.UpdateScore(true);
     Destroy(gameObject);
 }