void Awake(){ gamePlayMaster = GetComponent<GamePlayMaster> (); gamePlayMaster.OnNoBlocksOnGround += delegate { NewBlockSet (); }; gamePlayMaster.OnBlocksOnGroundWithNoDropMatch += NoPlayAvailable; gamePlayMaster.OnSuccessfulDrag += DropBlocksOnDropZone; }
void Awake(){ gamePlayMaster = GetComponent<GamePlayMaster> (); gamePlayMaster.OnColumsAndRowsCleared += delegate(int ColCount, int RowCount) { AddScore(ScoreManager.GetTotalScore(ColCount, RowCount)); }; }