Add a Zoom to the current camera, and remove it automatically after the animation is end. By default, the timer duration is set to 1 second.
CameraPlay.Zoom(float x, float y, float time, float size);
CameraPlay.Zoom(float x, float y, float time);
CameraPlay.Zoom(float x, float y);
|X||The x position of the effect.||0 = left side of the screen. 0.5f = center of the screen||Random Value between 0 to 1|
|Y||The y position of the effect.||0 = down side of the screen. 0.5f = center of the screen||Random Value between 0 to 1|
|Time||Time duration of the effect animation in second.||1 = 1 Second||1 second|
|Size||Size of the Distortion FX||1 = normal
2 = Mult by 2
0.5 = Division by 2
|Set to 1|
CameraPlay.Zoom(); // Add Zoom Effect for 2 seconds
CameraPlay.Zoom() : Set a Zoom randomly on the screen.
The effect is set by default on the main camera, if you want to change the current camera us CameraPlay.CurrentCamera and select the new camera All the other effect will use the new current camera.