void Start() { rend = GetComponent <MeshRenderer>(); rend.enabled = false; PeterEatBehaviour = GetComponentInParent <PeterEatBehaviour>(); eyeLook = GetComponentInParent <EyeLook>(); player = GameObject.FindObjectOfType <PlayerController>(); StopLook(); }
// Start is called before the first frame update void Start() { audioSource = GetComponent <AudioSource>(); eyeLook = GetComponentInChildren <EyeLook>(); }
void Start() { eyeLook = GetComponentInChildren <EyeLook>(); audioSource = GetComponent <AudioSource>(); player = GameObject.FindObjectOfType <PlayerController>(); }