Ejemplo n.º 1
0
	public bool Animate (UIAnimation animation, RectTransform rect=null) {
		if (!AllowSimultaneous && Animating)
			return false;
		animation.Rect = rect == null ? gameObject.GetComponent<RectTransform> () : rect;
		currentAnimation = animation;
		animation.Start ();
		return true;
	}
Ejemplo n.º 2
0
    public bool Animate(UIAnimation animation, RectTransform rect = null)
    {
        if (!AllowSimultaneous && Animating)
        {
            return(false);
        }
        animation.Rect = rect == null?gameObject.GetComponent <RectTransform> () : rect;

        currentAnimation = animation;
        animation.Start();
        return(true);
    }