private void Awake() { _controller = GetComponent <PhysicsObject>(); _audioSource = GetComponent <AudioSource>(); _spriteAnimator = GetComponent <SpriteAnimator>(); }
private void Awake() { renderer = GetComponentInChildren <SpriteRenderer>(); animator = GetComponentInChildren <SpriteAnimator>(); }