// Use this for initialization public override void Hit(PlayerController player) { //AudioSource.PlayClipAtPoint(death, transform.position, .8f); ScoreKeeper sk = FindObjectOfType <ScoreKeeper>(); sk.AddMoney(moneyValue); Debug.Log(moneyValue); Hit(); }