private void OnTriggerEnter(Collider other) { if (other.gameObject.GetComponent <PlayerController>() != null) { minigame.HitRule(other.gameObject.GetComponent <PlayerController>()); } }
private void OnTriggerEnter(Collider other) { if (other.CompareTag("Oxygen")) { actualGameMode.HitRule(this); Destroy(other.gameObject); } }
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); } }