public LTDescr setCanvasAlpha()
{
this.type = TweenAction.CANVAS_ALPHA;
this.initInternal = ()=>{
this.uiImage = trans.gameObject.GetComponent<UnityEngine.UI.Image>();
if(this.uiImage!=null){
this.fromInternal.x = this.uiImage.color.a;
}else{
this.rawImage = trans.gameObject.GetComponent<UnityEngine.UI.RawImage>();
if(this.rawImage != null){
this.fromInternal.x = this.rawImage.color.a;
}else{
this.fromInternal.x = 1f;
}
}
};
this.easeInternal = ()=>{
newVect = easeMethod();
val = newVect.x;
if(this.uiImage!=null){
Color c = this.uiImage.color; c.a = val; this.uiImage.color = c;
}else if(this.rawImage!=null){
Color c = this.rawImage.color; c.a = val; this.rawImage.color = c;
}
if(this.useRecursion){
alphaRecursive( this.rectTransform, val, 0 );
textAlphaRecursive( this.rectTransform, val);
}
};
return this;
}