整合SLSUtilities
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using MoreMountains.Feedbacks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SLSFramework.FeelAssistance
|
||||
{
|
||||
public class FeedbackUnit
|
||||
{
|
||||
public MMF_Player feedback;
|
||||
[HideInInspector]
|
||||
public Action action;
|
||||
[HideInInspector]
|
||||
public bool canPlay;
|
||||
|
||||
public void Play() => canPlay = true;
|
||||
|
||||
public void Update()
|
||||
{
|
||||
if (canPlay)
|
||||
{
|
||||
feedback?.PlayFeedbacks();
|
||||
action?.Invoke();
|
||||
canPlay = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84520693a83b7c646a99fc1c0264c1a9
|
||||
Reference in New Issue
Block a user