// 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"); } } }