// Update is called once per frame void Update() { if (!isgameover) { dicecontroller.StartToos(); if (!autoPlayer.ISAnamyStep()) { if (Input.GetMouseButtonDown(0)) { stepCont.StartStep(); chipMover = true; } if (chipMover) { moveChipController.StartMove(); moveChipController.CheckCollision(); } if (Input.GetMouseButtonUp(0)) { chipMover = false; moveChipController.MouseUp(); } } else if (stepCont.staepActivate && anamy && autoPlayer.ISAnamyStep()) { anamy = false; StartCoroutine("WAityBiforeAnameStep"); } } }
private void OnGUI() { GUILayout.Label(Question); for (int i = 0; i < Choices.Length; i++) { Choice choice = Choices[i]; if (GUILayout.Button(choice.Label)) { StepController.StartStep(choice.step); } } }
protected void EndStep() { StepController.StartStep(NextStep); }