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

        case 2:
            Runner.AddBoost();
            break;

        default:
            break;
        }

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