private void OnCollisionEnter2D(Collision2D other) { var otherFood = other.gameObject.GetComponent <Sauce>(); if (otherFood != null && !_animator.GetBool("isDestroying")) { if (gameObject.transform.position.x > 0) { _foodSpawner.SpawnComboShot(Utilities.Warriors.Enemy); } else { _foodSpawner.SpawnComboShot(Utilities.Warriors.Player); } } }