public StressDiamondGameModeLogic(GameHandlerScript gameMaster) { this.gameMaster = (DiamondMasterScript) gameMaster; this.level = gameMaster.getCurrentLevelRecord(); this.gameMaster.CollectedDiamondCountChanged += onDiamondCollected; }
public NormalDiamondGameModeLogic(GameHandlerScript gameMaster) { this.gameMaster = (DiamondMasterScript)gameMaster; this.level = gameMaster.getCurrentLevelRecord(); gameMaster.setGameTimeLeft(level.timeToSecondReward); }
void Update() { if (!inited) { diamondGameHandler = (DiamondMasterScript) GameServiceLayer.serviceLayer.gameMaster; updateDiamondLabel(); diamondGameHandler.CollectedDiamondCountChanged += updateDiamondLabel; } }