Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Checkpoint(Vector3 coords, OnEnterCheckpointDelegate enterDelegate, OnExitCheckpointDelegate exitDelegate, int markerType, int dimension, float scaleX, float scaleY, float scaleZ, int alpha, int colorR, int colorG, int colorB, bool popUpAndDown)
- {
- entrance = API.shared.createMarker(markerType, coords, new Vector3(), new Vector3(), new Vector3(scaleX, scaleY, scaleZ), alpha, colorR, colorG, colorB, dimension, popUpAndDown);
- shape = API.shared.createSphereColShape(coords, range*Math.Max(scaleX, scaleY));
- shape.onEntityEnterColShape += EntityEnteredCheckpoint;
- shape.onEntityExitColShape += EntityExitedCheckpoint;
- OnEnterCheckPointEvent += enterDelegate;
- OnExitCheckPointEvent += exitDelegate;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement