add some extra assets FX and SFX
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NobleMuffins.LimbHacker.Guts
|
||||
{
|
||||
public class ChildOfHackable : MonoBehaviour, ISliceable
|
||||
{
|
||||
[HideInInspector]
|
||||
public Hackable parentHackable;
|
||||
|
||||
void Start ()
|
||||
{
|
||||
if (parentHackable == null) {
|
||||
Debug.LogWarning ("Unconfigured ChildOfHackable found. Removing. If you added this to an object yourself, please remove it.");
|
||||
GameObject.DestroyImmediate (this);
|
||||
}
|
||||
}
|
||||
|
||||
void ISliceable.Slice (Vector3 positionInWorldSpace, Vector3 normalInWorldSpace)
|
||||
{
|
||||
parentHackable.Slice (positionInWorldSpace, normalInWorldSpace);
|
||||
}
|
||||
#pragma warning disable 0067
|
||||
public event EventHandler<SliceEventArgs> Sliced;
|
||||
#pragma warning restore 0067
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user