Exemple #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.GetComponent <PlayerController>() != null)
     {
         minigame.HitRule(other.gameObject.GetComponent <PlayerController>());
     }
 }
Exemple #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Oxygen"))
     {
         actualGameMode.HitRule(this);
         Destroy(other.gameObject);
     }
 }
Exemple #3
0
    private void OnTriggerEnter(Collider other)
    {
        PlayerController player = other.GetComponent <PlayerController>();

        if (player != null)
        {
            MiniGame m = GameObject.Find("Game Mode").GetComponent <FallingGloves>();
            m.HitRule(player);
            //other.GetComponent<PlayerController>().ReceiveDamage(10000000, null);
        }
    }