void Awake() { theSleepwalker = GameObject.FindGameObjectWithTag("Sleepwalker"); sleepWalkerHealth = theSleepwalker.GetComponent <SleepwalkerHealth> (); theSheep = GameObject.FindGameObjectWithTag("Sheep"); sheepStamina = theSheep.GetComponent <SheepStamina> (); }
void Awake() { ramboHeadband = GameObject.FindGameObjectWithTag("RamboHeadband"); ramzooka = GameObject.FindGameObjectWithTag("Ramzooka"); sheepController = FindObjectOfType <SheepController> (); sheepStamina = FindObjectOfType <SheepStamina> (); headbandSprite = ramboHeadband.GetComponent <SpriteRenderer>(); headbandCollider = ramboHeadband.GetComponent <CircleCollider2D>(); }
void Awake() { woolBall = GameObject.FindGameObjectWithTag("WoolBall"); sheepController = FindObjectOfType <SheepController> (); sheepStamina = FindObjectOfType <SheepStamina> (); }