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