///////////////////////////////////////////////////////////////////////////
		//
		// Inherited from UIAnimation
		//

		/// <summary>
		/// Sets the start values.
		/// </summary>
		public override void SetStartValues(){
			
			canvasGroupAnimator=GetComponent<CanvasGroupAnimator>();

			switch(animationType){
			case AnimationType.Alpha:
				canvasGroupAnimator.SetAlphaValue(startValue);
				break;
			}
		}
		///////////////////////////////////////////////////////////////////////////
		//
		// Inherited from MonoBehaviour
		//

		protected void Awake ()
		{
			canvasGroupAnimator = GetComponent<CanvasGroupAnimator> ();
		}
Exemple #3
0
 public CanvasGroupAnimation_Alpha(CanvasGroupAnimator materialAnimator, Action onCompleteAction, UIAnimation_Base.TweenType tweenType, float startValue, float endValue, float deltaValue, float duration, AnimationCurve easeCurve, LoopType loopType, int loopCount)
     : base(onCompleteAction, tweenType, startValue, endValue, deltaValue, duration, easeCurve, loopType, loopCount)
 {
     this.canvasGroupAnimator = materialAnimator;
 }