//BonusPuzzleStone // int numParticles = 0; // public int MaxParticles = 2; void onStoneClick(BonusPuzzleStone stone) { // if (numParticles <= MaxParticles) // { stone.addParticles(); // numParticles++; // } }
//BonusPuzzleStone // int numParticles = 0; // public int MaxParticles = 2; void onStoneClick(BonusPuzzleStone stone) { if (m_anim_hand != null && m_anim_hand.activeSelf) { m_anim_hand.SetActive(false); } // if (numParticles <= MaxParticles) // { stone.addParticles(); // numParticles++; // } }
void OnStoneDestroy(BonusPuzzleStone stone) { // if (numParticles > 0) { // numParticles--; // } }