void Start() { player = GameObject.Find("player").transform; playerSeen = false; chaser = gameObject.GetComponent<PlayerChaser>(); }
protected override void Awake() { base.Awake(); playerChaser = GetComponent <PlayerChaser>(); bounce = GetComponent <BounceComponent>(); bounce.ResetBounces(3); spawn = GetComponent <SpawnComponent>(); EventList.grubCollect += Beetle_OnBugCollect; }
// Start is called before the first frame update void Start() { pc = GetComponentInParent <PlayerChaser>(); }