HIT


Descriptions

Add a Hit to the current camera, and remove it automatically after the animation is end. By default, the timer duration is set to 3 seconds.

CameraPlay.Hit(Color col, float time);

CameraPlay.Hit(Color col);

CameraPlay.Hit(float time);

CameraPlay.Hit();

Parameters

Name Description Value Description Default
Time Time duration of the effect animation in second 1 = 1 second 3 seconds
Color Set the color Color in RGBA Color by default : red

Example:

CameraPlay.Hit(Color.green, 2); // Add Hit for 2 seconds with a green color.

Note:

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.