private void SetMovement(IMovement value) { if (movement != null) { movement.Leave(); } movement = value; if (movement != null) { movement.Begin(); } }
private void SetMovement(IMovement value) { if (movement != null) { movement.Leave(); } movement = value; if (movement != null) { movement.Begin(); } }