PointCapture
Allows the Player to Capture a Point and perform custom events.
captureSpeed: how fast the point will be captured
loseProgressIfNotCapturing: If true, progress will gradually be lost when player leaves the point
losingProgressCaptureSpeed: Speed of progress loss
events
Functions & Accesors | PointCapture.cs
OnCapture( )
This is called whenever you capture the point
Since it is a public virtual void, you can override this method on a new script that inherits from PointCapture. However, do not forget to use
base.OnCapture();
if you still want to perform the base actions on that new script, which is recommended.
Last updated