Пример #1
0
 public override void Dispose()
 {
     _sceneEditor.RemoveGizmo(BoneGizmo);
     _sceneEditor.RemoveGizmo(RotationGizmo);
     BoneGizmo.Dispose();
     RotationGizmo.Dispose();
 }
Пример #2
0
 public override void Finish()
 {
     var tail = _positionTailWorld - _positionWorld;
     _sceneEditor.Editor.AddBoneNode(_positionWorld, tail.GetAngle(), tail.Magnitude);
     _gizmo?.Dispose();
     _sceneEditor.RemoveGizmo(_gizmo);
 }
Пример #3
0
        public override void Dispose()
        {
            _sceneEditor.SceneViewport.RemoveSpriteNode(NodeId);

            _sceneEditor.RemoveGizmo(SelectionGizmo);
            _sceneEditor.RemoveGizmo(RotationGizmo);

            SelectionGizmo.Dispose();
            RotationGizmo.Dispose();
        }