Exemple #1
0
    public void DestroyItem(int grabbedItemNumber)
    {
        if (grabbedItemNumber == NowOdaiNumber)
        {
            SoundManager.PlayTrueSound();

            ScoreCounter.AddScoreValue(_itemQ.Peek().GetComponent <ItemInformation>().ItemPoint);
            Destroy(_itemQ.Peek());
            _itemQ.Dequeue();
            _odaiLeftAmount = _itemQ.Count + 1;

            OdaiUpadte();
            NowOdaiNumber++;
        }
        else
        {
            SoundManager.PlayFalseSound();

            NowOdaiNumber += 0;
        }

        //Debug.Log(NowOdaiNumber);
    }
Exemple #2
0
 public void GetScore(float multiplicator)
 {
     counter.AddScoreValue(scoreValue * multiplicator);
 }