void Awake() { if (instance == null) { instance = this; } }
void OnTriggerExit(Collider other) { PlayerAtributes player = other.GetComponent <PlayerAtributes> (); if (player && player.targetActivator == this) { player.targetActivator = null; } }
void Awake() { if (instance == null) { instance = this; } }
void OnTriggerExit(Collider other) { PlayerAtributes player = other.GetComponent <PlayerAtributes> (); if (player && player.targetActivator == this) { player.targetActivator = null; } }