Exemplo n.º 1
0
 void Start()
 {
     rend              = GetComponent <MeshRenderer>();
     rend.enabled      = false;
     PeterEatBehaviour = GetComponentInParent <PeterEatBehaviour>();
     eyeLook           = GetComponentInParent <EyeLook>();
     player            = GameObject.FindObjectOfType <PlayerController>();
     StopLook();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     peterHead         = GetComponentInChildren <PeterHead>();
     flyManager        = GameObject.FindObjectOfType <FlyManager>();
     PeterEatBehaviour = GetComponentInParent <PeterEatBehaviour>();
     spriteRenderer    = GetComponentInChildren <SpriteRenderer>();
     listCollisions    = GetComponentsInChildren <EyeCollision>();
     currentCollision  = listCollisions[0];
     spriteIdle        = spriteRenderer.sprite;
     timeTotalRange    = Random.Range(totalMin, totalMax);
     StopLooking();
 }