Exemplo n.º 1
0
    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());
    }
Exemplo n.º 2
0
 public void IncreaseScore_Sound()
 {
     soundManager.PlaySoundByIndex(0, Vector3.zero);
 }