// Start is called before the first frame update IEnumerator Start() { instructionManual = GetComponent <InstructionManual>(); // Wait for instruction manual to initialize yield return(null); instructionManual.preGameVersion = true; instructionManual.OnNextPressedOnLastPage += StartGame; instructionManual.OpenManual(atLog: true); StartCoroutine(nameof(LoadGamePlayScene)); }
private void Awake() { tasksDisplay = GameObject.FindGameObjectWithTag("TasksDisplay").GetComponent <TasksDisplay>(); instructionManualReference = this.transform.parent.GetComponent <InstructionManual>(); reset = new Vector3[workStepParts.Length]; for (int i = 0; i < workStepParts.Length; i++) { { reset[i] = workStepParts[i].transform.localPosition; } } }
public void PuzzelTwo() { var sut = new InstructionManual(InputParser.ParseString("input_data/day13-1.txt")); sut.AllFolds(); }
public void TestInput() { var sut = new InstructionManual(InputParser.ParseString("input_data/day13-test.txt")); Assert.Equal(17, sut.FirstFold()); }
public void PuzzelOne() { var sut = new InstructionManual(InputParser.ParseString("input_data/day13-1.txt")); Assert.Equal(671, sut.FirstFold()); }