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); }