private void Update() { this.gameObject.transform.localPosition = this.LocationHandler.GetLocation(AudioPlayer.Instance.TrueAudioTime); if (this.LocationHandler.AtCenter()) { HitObjectHandler.OnHit(this); } }
public void OnTriggerEnter2D(Collider2D other) { HitObject hitObject = other.GetComponent <HitObject>(); HitObjectHandler.OnHit(hitObject); }