void Awake()
    {
        theSleepwalker    = GameObject.FindGameObjectWithTag("Sleepwalker");
        sleepWalkerHealth = theSleepwalker.GetComponent <SleepwalkerHealth> ();

        theSheep     = GameObject.FindGameObjectWithTag("Sheep");
        sheepStamina = theSheep.GetComponent <SheepStamina> ();
    }
Example #2
0
 void Awake()
 {
     ramboHeadband    = GameObject.FindGameObjectWithTag("RamboHeadband");
     ramzooka         = GameObject.FindGameObjectWithTag("Ramzooka");
     sheepController  = FindObjectOfType <SheepController> ();
     sheepStamina     = FindObjectOfType <SheepStamina> ();
     headbandSprite   = ramboHeadband.GetComponent <SpriteRenderer>();
     headbandCollider = ramboHeadband.GetComponent <CircleCollider2D>();
 }
Example #3
0
 void Awake()
 {
     woolBall        = GameObject.FindGameObjectWithTag("WoolBall");
     sheepController = FindObjectOfType <SheepController> ();
     sheepStamina    = FindObjectOfType <SheepStamina> ();
 }