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; }
/// <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; }
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(); }