void Start() { followScript = Camera.main.GetComponent <CameraFollowPlayersScript>(); dashParticle = GameObject.Find("CatDashParticle").GetComponent <ParticleSystem>(); mRigidBody = GetComponent <Rigidbody> (); mAudioSource = GetComponent <AudioSource> (); myAnimator = transform.GetChild(0).GetComponent <Animator>(); myParticle = GameObject.Find("CatCatchRatParticle").GetComponent <ParticleSystem>(); }
void SetInitialReferences() { followScript = Camera.main.GetComponent <CameraFollowPlayersScript>(); myAnimator = GetComponent <Animator>(); myParticle = transform.GetChild(5).gameObject; }