void OnTriggerExit(Collider other) { if (other.tag == "Player") { inTriggerZone = null; } }
public void GenerateNewCreature(int playerIndex, List <DNA> splicedDNA) { CreatureLinks playerCreatureLinks = playerIndex == 0 ? splicedCreature1 : splicedCreature2; playerCreatureLinks.gameObject.SetActive(true); playerCreatureLinks.SetCreature(GetNewSplicedCreature(splicedDNA)); }
void OnTriggerEnter(Collider other) { if (other.tag == "Player") { inTriggerZone = other.GetComponent <CreatureLinks> (); } }