void Awake() { dieAnim = GetComponent <GoombaDieAnim>(); patrol = GetComponent <Patrol>(); idle = GetComponent <Idle>(); body = GetComponent <ChipmunkBody>(); patrol.setDir(1f); // initialize patrol direction }
void Awake() { dieAnim = GetComponent <GoombaDieAnim>(); patrol = GetComponent <Patrol>(); idle = GetComponent <Idle>(); body = GetComponent <ChipmunkBody>(); shape = GetComponent <ChipmunkShape>(); PauseGameManager.Instance.register(this, gameObject); }