Example #1
0
    public void SetHOAnimation(DOViewAnimation.EntranceType entranceType, DOViewAnimation.ExitType exitType)
    {
        this.viewAnimation = null;

        DOViewAnimation hoViewAnimation = new DOViewAnimation(this.rectTransform, this);

        hoViewAnimation.SetAnimationType(this.entranceType, this.exitType);

        this.viewAnimation = hoViewAnimation;
    }
Example #2
0
    private void ShowModifiedEntranceType(DOViewAnimation.EntranceType entranceType)
    {
        UIAnimScreen uiAnimScreen = (UIAnimScreen)ViewHandler.Instance.Show(ViewNames.UI_ANIM_SCREEN_NAME, true);

        uiAnimScreen.DoNotDestroy();            //do not destroy the view but put it into the view pool
        ViewHandler.Instance.HideCurrentView(); //immediately hide the view first then change the animation
        uiAnimScreen.SetHOAnimation(entranceType, uiAnimScreen.GetExitType());
        uiAnimScreen.Show();
        uiAnimScreen.MakeDestroyable();          //make the copy destroyable so it does not 'leak'.
    }
Example #3
0
    /// <summary>
    /// Copies the properties from a view to the next view.
    /// </summary>
    /// <param name="view">View.</param>
    public void CopyProperty(View view)
    {
        this.rectTransform = view.GetComponent <RectTransform>();

        this.entranceType = view.entranceType;
        this.exitType     = view.exitType;

        DOViewAnimation hoViewAnimation = new DOViewAnimation(this.rectTransform, this);

        hoViewAnimation.SetAnimationType(this.entranceType, this.exitType);

        this.viewAnimation = hoViewAnimation;
    }