Exemplo n.º 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;
    }
Exemplo n.º 2
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;
    }
Exemplo n.º 3
0
    public virtual void Show()
    {
        if (this.viewAnimation == null)
        {
            DOViewAnimation hoViewAnimation = new DOViewAnimation(this.rectTransform, this);
            hoViewAnimation.SetAnimationType(this.entranceType, this.exitType);

            this.viewAnimation = hoViewAnimation;
        }

        this.AttachButtonSounds();
        this.Reset();
        this.OnShowStarted();
        this.viewAnimation.PerformEntrance();
    }