コード例 #1
0
ファイル: GameManager.cs プロジェクト: Hatem-D/SimpleMatch3
 void GemClicked(GemController oldGem)
 {
     //Debug.Log("GemClick");
     oldGem.raycasted = true;                                                       //mark as part of the gems to destroy
     gemClick         = WaitClick;                                                  //send clicks to waitin function while monitoring velocity
     gameVars.GemClicked(oldGem.dynamicGemType, gemsColors[oldGem.dynamicGemType]); //send gem type to score data
     gameVars.SetComboScore();                                                      //start comboingScore
     oldGem.GetMeAndMySisters();                                                    //destroy gems of the same color
     gameVars.Moves++;                                                              //add a move to the move counter
 }