private void OnCollisionEnter(Collision other) { _bucketManager.AddScore(_score); var playerController = other.gameObject.GetComponent <PlayerController>(); if (playerController != null) { playerController.Reset(); } }