private void DieObject() { generalController.setCoin(5); Debug.Log("Current coin" + generalController.coin); Destroy(gameObject); }