add some extra assets FX and SFX
This commit is contained in:
@@ -263,6 +263,8 @@ public class plasmaCutterProjectile : projectileSystem
|
||||
|
||||
currentSurfaceToSlice.checkEventBeforeSlice ();
|
||||
|
||||
currentSurfaceToSlice.checkEventsOnIgnoreDestroyOriginalObject ();
|
||||
|
||||
currentSurfaceToSlice.getMainSimpleSliceSystem ().activateSlice (objectCollider, positionInWorldSpace,
|
||||
normalInWorldSpace, slicePosition, updateLastObjectSpeed, lastSpeed);
|
||||
|
||||
@@ -284,6 +286,8 @@ public class plasmaCutterProjectile : projectileSystem
|
||||
|
||||
currentSurfaceToSlice.checkEventBeforeSlice ();
|
||||
|
||||
currentSurfaceToSlice.checkEventsOnIgnoreDestroyOriginalObject ();
|
||||
|
||||
objectToCheck = currentSurfaceToSlice.getMainSurfaceToSlice ();
|
||||
|
||||
// slice the provided objectToCheck ect using the transforms of this object
|
||||
@@ -416,6 +420,11 @@ public class plasmaCutterProjectile : projectileSystem
|
||||
}
|
||||
|
||||
objectToCheck.SetActive (false);
|
||||
|
||||
if (currentSurfaceToSlice.useEventToSendNewSlicedParts) {
|
||||
currentSurfaceToSlice.eventToSendNewSlicedParts.Invoke (object1);
|
||||
currentSurfaceToSlice.eventToSendNewSlicedParts.Invoke (object2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user