private void OnKilledCharacter(Character2D DeadCharacter) { int GoldAdd = DeadCharacter.GetGoldCoinsDrop(); GoldCoins += GoldAdd;// Mathf.FloorToInt(Random.Range(0, 1.99f)); OnGoldCoinsChanged(); if (GoldAdd > 0) { MapData.Instance.CreateHealthPopup(DeadCharacter.transform.position, GoldAdd, 1); } }