示例#1
0
 void OnTriggerEnter(Collider other)
 {
     Runner.AddBoost();
     GameObject.FindWithTag("Player").BroadcastMessage("RandomShape");
     GameObject.FindWithTag("Player").BroadcastMessage("RandomColor");
     GUIManager.SetRandomRule();
 }
示例#2
0
    void OnTriggerEnter()
    {
        switch (bType)
        {
        case 1:
            Runner.AddCalo();
            break;

        case 2:
            Runner.AddBoost();
            break;

        default:
            break;
        }

        gameObject.SetActive(false);
    }
示例#3
0
 void OnTriggerEnter()
 {
     audio.PlayOneShot(coin, 0.7F);
     Debug.Log("play sound");
     Runner.AddBoost();
 }
示例#4
0
 void OnTriggerEnter()
 {
     Runner.AddBoost();
     TouchBoosterSound.Play();
     gameObject.SetActive(false);
 }
示例#5
0
 void OnTriggerEnter()
 {
     runner.AddBoost();
     gameObject.SetActive(false);
 }
示例#6
0
 private void OnTriggerEnter(Collider other)
 {
     Runner.AddBoost();
     gameObject.SetActive(false);
 }