// Start is called before the first frame update protected override void Awake() { base.Awake(); acManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ActionCountManager>(); sr = GetComponentInChildren <SpriteRenderer>(); mat = sr.material; impulse = GetComponent <CinemachineImpulseSource>(); }
// Start is called before the first frame update protected override void Awake() { base.Awake(); acManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ActionCountManager>(); playerCon = player.GetComponent <PlayerController>(); sr = GetComponentInChildren <SpriteRenderer>(); mat = sr.material; }