// Start is called before the first frame update void Start() { prevPos = gameObject.transform.position; tween = new Tween(); GUIText = GameObject.FindGameObjectWithTag("TextManager").GetComponent <TextDisplay>(); GUIText.GetPacStudentController(this); fishSenses = GameObject.FindGameObjectWithTag("Sensor").GetComponent <PacStudentSensor>(); hitbox = gameObject.GetComponent <BoxCollider2D>(); SetHitBox(false); frameRenderer = gameObject.GetComponent <SpriteRenderer>(); for (int i = 0; i < 3; i++) { particles[i] = gameObject.transform.GetChild(i).GetComponent <ParticleSystem>().emission; particles[i].enabled = false; } isLevel2 = SceneManager.GetActiveScene().name.Equals("InnovationScene"); pacAudioSource = gameObject.GetComponent <AudioSource>(); pacAnim = gameObject.GetComponent <Animator>(); pacAnim.speed = 0; }