public static CameraFadeTo ( Hashtable args ) : void | ||
args | Hashtable | |
return | void |
public static void CameraFadeTo(Hashtable args)
{
/*
CameraFadeAdd(Defaults.cameraFadeDepth);
//rescale cameraFade just in case screen size has changed to ensure it takes up the full screen:
cameraFade.guiTexture.pixelInset=new Rect(0,0,Screen.width,Screen.height);
*/
if(cameraFade){
//establish iTween:
ColorTo(cameraFade,args);
}else{
Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
}
}
iTween::CameraFadeTo ( float amount, float time ) : void |