public GameController() { SET_OF_RANDOM_DIRECTIONS = new int[][] { new int[] { -1, 1 }, new int[] { 1, -1 } }; RANDOM = new Random(); matchedLineInfos = new List <MatchedLineInfo>(); feedingGemModels = new List <GemModel>(); fallingGemModels = new List <GemModel>(); blockedGemModels = new Stack <GemModel>(); matchedGemModels = new List <GemModel>(); swappingGemModels = new List <GemModel>(); brokenGemInfo = new BrokenGemInfo() { gemModels = new List <GemModel>() }; blockedGemInfo = new BlockedGemInfo { gemModels = new List <GemModel>() }; replacedGemInfo = new ReplacedGemInfo { gemModels = new List <GemModel>() }; mergedGemInfo = new MergedGemInfo(); matchableGemInfos = new List <MatchableGemInfo>(); wheresCanMatch = new List <WhereCanMatch>(); matchableTypeInfos = new List <MatchableTypeInfo>(); }
public override void Kill() { base.Kill(); matchedLineInfos = null; feedingGemModels = null; fallingGemModels = null; blockedGemModels = null; matchedGemModels = null; swappingGemModels = null; brokenGemInfo = null; blockedGemInfo = null; replacedGemInfo = null; mergedGemInfo = null; matchableGemInfos = null; wheresCanMatch = null; matchableTypeInfos = null; }