// Use this for initialization void Start() { boxTools = new BoxTools(0, 3, this.OnBoxMerged); actions = new[] { UserActionFactory.Left(boxTools.MergeLeft), UserActionFactory.Right(boxTools.MergeRight), UserActionFactory.Up(boxTools.MergeUp), UserActionFactory.Down(boxTools.MergeDown), }; this.stateSavables = new StateSavable[] { score, playTime }; MouseState.InitCurrent(); gameConfig = GameConfigTools.Difficulty2Config(GameState.Current.Difficulty); bombCount = 0; SetProgressActive(true); SetDefaultMaxTimeRemain(); ResetTimer(); score.Reset(); AddBox(); UpdatePosition(); }