public void UpDifficult() { if (cur_strategy == rand3x3) { cur_strategy = rand2x2; UpdateAction = Update2x2; } else if (cur_strategy == rand2x2) { cur_strategy = rand1x1; UpdateAction = Update1x1; } }
public void Init() { offsets[0] = new int[2] { -1, -1 }; offsets[1] = new int[2] { -1, 0 }; offsets[2] = new int[2] { -1, 1 }; offsets[3] = new int[2] { 1, -1 }; offsets[4] = new int[2] { 1, 0 }; offsets[5] = new int[2] { 1, 1 }; offsets[6] = new int[2] { 0, -1 }; offsets[7] = new int[2] { 0, 0 }; offsets[8] = new int[2] { 0, 1 }; cur_strategy = rand3x3; UpdateAction = Update3x3; timer = cur_strategy.cool_down; resp_count = 1; respowned = 0; }