private void Start() { if (!neanderthal || !alien) { alien = GetComponentInParent <Alien01>(); neanderthal = GetComponentInParent <Neanderthal>(); } }
void Start() { Alien01Receiver = GetComponentInParent <Alien01>(); boss01Receiver = GetComponentInParent <Boss01>(); boss02Receiver = GetComponentInParent <Boss02>(); boss03Receiver = GetComponentInParent <YetyBoss>(); Neanderthal01Receiver = GetComponentInParent <Neanderthal>(); thisTrigger = GetComponent <Collider>(); }