Beispiel #1
0
 void Die()
 {
     AudioSource.PlayClipAtPoint(explosion, transform.position);
     Instantiate(smoke, gameObject.transform.position, Quaternion.identity);
     scoreKeeper.CalculateScore(scoreValue);
     Destroy(gameObject);
 }
Beispiel #2
0
 private void OnMouseDown()
 {
     if (!wasUsed)
     {
         // calculate score based on selected combination and dice rolls
         scoreKeeper.CalculateScore(diceManager.GetDiceRolls(), combinationData.combinationName);
         diceManager.ResetDice();
     }
     DisableCombination();
 }