add some extra assets FX and SFX
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NobleMuffins.LimbHacker.Examples
|
||||
{
|
||||
[RequireComponent(typeof(SwordVelocityFilter))]
|
||||
public class AttachableSlicerController : MonoBehaviour
|
||||
{
|
||||
private SwordVelocityFilter swordVelocityFilter;
|
||||
public GameObject slicer;
|
||||
|
||||
void Start()
|
||||
{
|
||||
swordVelocityFilter = GetComponent<SwordVelocityFilter>();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
slicer.SetActive(swordVelocityFilter.IsFastEnoughToCut);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user