Ejemplo n.º 1
0
 void Start()
 {
     blendAnimation         = animatedBlending.GetComponent <SpriteRenderer>();
     blendAnimation.enabled = false;
     pitcher         = GameObject.Find("blender-pitcher").GetComponent <BlenderPitcherController>();
     pitcherSprite   = pitcher.gameObject.GetComponent <SpriteRenderer>();
     dragIngredients = pitcher.GetComponent <DragIngredient>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     foreach (Transform child in this.transform)
     {
         if (child.tag == "snapingredient")
         {
             placedIngredients = child.gameObject.GetComponent <AcceptIngredient>();
         }
     }
     dragIngredients = this.GetComponent <DragIngredient>();
 }