Example #1
0
    // 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");
            }
        }
    }
Example #2
0
 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);
         }
     }
 }
Example #3
0
 protected void EndStep()
 {
     StepController.StartStep(NextStep);
 }