Exemple #1
0
 void PendingSlice_target_Sliced(object sender, SliceEventArgs e)
 {
     if (e.Parts.Length > 1)
     {
         suppressUntilContactCeases.AddRange(e.Parts);
     }
 }
Exemple #2
0
    void RegisterWithSliceSystem(object sender, NobleMuffins.TurboSlicer.SliceEventArgs e)
    {
        foreach (var newSlice in e.Parts)
        {
            if (slicingSystem)
            {
                newSlice.GetComponent <Sliceable>().slicingSystem = slicingSystem;
            }

            slicingSystem.objectsToCut.Add(newSlice);
        }
    }