Files
FueraDeEscala/Assets/Game Kit Controller/Integrations/LimbHacker-master/Guts/ChildOfHackable.cs

27 lines
705 B
C#
Raw Normal View History

2026-03-29 23:03:14 -07:00
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
}
}