add some extra assets FX and SFX
This commit is contained in:
@@ -91,7 +91,7 @@ public class surfaceToSlice : MonoBehaviour
|
||||
public float timeScale = 0.2f;
|
||||
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Header ("Other Settings")]
|
||||
[Space]
|
||||
|
||||
public bool destroySlicedPartsAfterDelay;
|
||||
@@ -119,6 +119,16 @@ public class surfaceToSlice : MonoBehaviour
|
||||
public bool useEventBeforeCut;
|
||||
public UnityEvent eventBeforeCut;
|
||||
|
||||
[Space]
|
||||
|
||||
public bool ignoreDestroyOriginalObject;
|
||||
|
||||
public UnityEvent eventsOnIgnoreDestroyOriginalObject;
|
||||
|
||||
[Space]
|
||||
|
||||
public bool useEventToSendNewSlicedParts;
|
||||
public eventParameters.eventToCallWithGameObject eventToSendNewSlicedParts;
|
||||
|
||||
|
||||
float lastTimeSliced;
|
||||
@@ -127,6 +137,13 @@ public class surfaceToSlice : MonoBehaviour
|
||||
bool mainDestroyGameObjectAssigned;
|
||||
|
||||
|
||||
public void checkEventsOnIgnoreDestroyOriginalObject ()
|
||||
{
|
||||
if (ignoreDestroyOriginalObject) {
|
||||
eventsOnIgnoreDestroyOriginalObject.Invoke ();
|
||||
}
|
||||
}
|
||||
|
||||
public void checkEventBeforeSlice ()
|
||||
{
|
||||
if (useEventBeforeCut) {
|
||||
@@ -309,6 +326,13 @@ public class surfaceToSlice : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public void setMainSimpleSliceSystemCheckingNotNull (GameObject newObject)
|
||||
{
|
||||
setMainSimpleSliceSystem (newObject);
|
||||
|
||||
cutSurfaceEnabled = (mainSimpleSliceSystem != null);
|
||||
}
|
||||
|
||||
public void setDestructionPending (bool state)
|
||||
{
|
||||
if (!mainSimpleSliceSystemAssigned) {
|
||||
|
||||
Reference in New Issue
Block a user