Beispiel #1
0
        private void SetMovement(IMovement value)
        {
            if (movement != null)
            {
                movement.Leave();
            }

            movement = value;

            if (movement != null)
            {
                movement.Begin();
            }
        }