public void MoveUp() { if (state != State.Idle) { return; } upMoveTask.Start(); SurferState = State.Up; }
private void SurferStateChanged(Surfer.State state) { if (state == Surfer.State.Up) { canMove = false; scaleTask.Start(); } if (state == Surfer.State.Idle && !canMove) { canMove = true; } }