Exemplo n.º 1
0
    // 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));
    }
Exemplo n.º 2
0
 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;
         }
     }
 }
Exemplo n.º 3
0
        public void PuzzelTwo()
        {
            var sut = new InstructionManual(InputParser.ParseString("input_data/day13-1.txt"));

            sut.AllFolds();
        }
Exemplo n.º 4
0
        public void TestInput()
        {
            var sut = new InstructionManual(InputParser.ParseString("input_data/day13-test.txt"));

            Assert.Equal(17, sut.FirstFold());
        }
Exemplo n.º 5
0
        public void PuzzelOne()
        {
            var sut = new InstructionManual(InputParser.ParseString("input_data/day13-1.txt"));

            Assert.Equal(671, sut.FirstFold());
        }