Esempio n. 1
0
        public void MoveUp()
        {
            if (state != State.Idle)
            {
                return;
            }

            upMoveTask.Start();
            SurferState = State.Up;
        }
Esempio n. 2
0
        private void SurferStateChanged(Surfer.State state)
        {
            if (state == Surfer.State.Up)
            {
                canMove = false;
                scaleTask.Start();
            }

            if (state == Surfer.State.Idle && !canMove)
            {
                canMove = true;
            }
        }