Fuse Spawn Offset

If you want to spawn a fuse closer or further away from the fuse box when inputting a fuse, you can use the "spawnOffset" which is a private variable in-case you need it. Just make this visible in the inspector and adjust the Z axis in the Vector3. I'll also leave an example below:

/*Serialize this field if you wish to spawn a fuse with an offset further
 away from the spawn point*/
private Vector3 spawnOffset = new Vector3(0, 0, 0f);
[SerializeField] private Vector3 spawnOffset = new Vector3(0, 0, VALUE-HERE);

Last updated