Beispiel #1
0
    public void OnAction()
    {
        DeleteAnimation action = ScriptableObject.CreateInstance <DeleteAnimation>();

        action.init(LegacyEditorData.instance.currentAnimation);
        LegacyEditorData.instance.DoAction(action);
    }
        public static IOneWayControlAnimation CreateDeleteAnimation(DeleteAnimation type, double duration = .3)
        {
            switch (type)
            {
                case DeleteAnimation.None:
                    return null;
                case DeleteAnimation.Shrink:
                    return new DeleteShrinkAnimation(duration);
                case DeleteAnimation.Fade:
                    return new DeleteFadeAnimation(duration);

            }
            return null;
        }
Beispiel #3
0
        public static IOneWayControlAnimation CreateDeleteAnimation(DeleteAnimation type, double duration = .3)
        {
            switch (type)
            {
            case DeleteAnimation.None:
                return(null);

            case DeleteAnimation.Shrink:
                return(new DeleteShrinkAnimation(duration));

            case DeleteAnimation.Fade:
                return(new DeleteFadeAnimation(duration));
            }
            return(null);
        }