public static void Init() { ks = new KeySetup(); keys = new bool[9]; for (int i = 0; i < keys.Length; i++) { keys[i] = true; } }
public void Load() { KeySetup get = new KeySetup(false); get = JsonConvert.DeserializeObject <KeySetup>(System.IO.File.ReadAllText("setup.json")); this.TetrisLeft = get.TetrisLeft; this.TetrisRight = get.TetrisRight; this.BetaBasic = get.BetaBasic; this.HoldSlot = get.HoldSlot; this.InstantDrop = get.InstantDrop; this.FastDrop = get.FastDrop; this.RotateLeft = get.RotateLeft; this.RotateRight = get.RotateRight; this.Scores = get.Scores; this.BestScore = get.BestScore; this.Shadows = get.Shadows; }