add some extra assets FX and SFX
This commit is contained in:
@@ -394,6 +394,8 @@ public class sliceSystem : MonoBehaviour
|
||||
|
||||
currentSurfaceToSlice.checkEventBeforeSlice ();
|
||||
|
||||
currentSurfaceToSlice.checkEventsOnIgnoreDestroyOriginalObject ();
|
||||
|
||||
currentSurfaceToSlice.getMainSimpleSliceSystem ().activateSlice (objectCollider, positionInWorldSpace,
|
||||
normalInWorldSpace, slicePosition, updateLastObjectSpeed, lastSpeed);
|
||||
|
||||
@@ -418,6 +420,8 @@ public class sliceSystem : MonoBehaviour
|
||||
|
||||
currentSurfaceToSlice.checkEventBeforeSlice ();
|
||||
|
||||
currentSurfaceToSlice.checkEventsOnIgnoreDestroyOriginalObject ();
|
||||
|
||||
obj = currentSurfaceToSlice.getMainSurfaceToSlice ();
|
||||
|
||||
sliceSystemUtils.sliceObject (currentCutPosition, obj, currentCutUp, crossSectionMaterial, ref objectSliced, ref object1, ref object2);
|
||||
@@ -542,6 +546,11 @@ public class sliceSystem : MonoBehaviour
|
||||
}
|
||||
|
||||
obj.SetActive (false);
|
||||
|
||||
if (currentSurfaceToSlice.useEventToSendNewSlicedParts) {
|
||||
currentSurfaceToSlice.eventToSendNewSlicedParts.Invoke (object1);
|
||||
currentSurfaceToSlice.eventToSendNewSlicedParts.Invoke (object2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user