public void CoinsTaked(Vector3 aPosition, int pointsValue, int takeByID) { // tell our sound controller to play an sound soundManager.PlaySoundByIndex(0, aPosition); // tell main data manager to add score mainPlayerDataManager1.AddScore(pointsValue); // update the score on the UI UpdateScoreP1(mainPlayerDataManager1.GetScore()); }
public void IncreaseScore_Sound() { soundManager.PlaySoundByIndex(0, Vector3.zero); }