void OnTriggerEnter(Collider other) { Runner.AddBoost(); GameObject.FindWithTag("Player").BroadcastMessage("RandomShape"); GameObject.FindWithTag("Player").BroadcastMessage("RandomColor"); GUIManager.SetRandomRule(); }
void OnTriggerEnter() { switch (bType) { case 1: Runner.AddCalo(); break; case 2: Runner.AddBoost(); break; default: break; } gameObject.SetActive(false); }
void OnTriggerEnter() { audio.PlayOneShot(coin, 0.7F); Debug.Log("play sound"); Runner.AddBoost(); }
void OnTriggerEnter() { Runner.AddBoost(); TouchBoosterSound.Play(); gameObject.SetActive(false); }
void OnTriggerEnter() { runner.AddBoost(); gameObject.SetActive(false); }
private void OnTriggerEnter(Collider other) { Runner.AddBoost(); gameObject.SetActive(false); }