riversong code showcase
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace DanieleMarotta.RiversongCodeShowcase
|
||||
{
|
||||
public class AgentAnimationEventHandler : MonoBehaviour
|
||||
{
|
||||
private bool _actionAnimationCompleted;
|
||||
|
||||
public void ActionAnimationCompleted()
|
||||
{
|
||||
_actionAnimationCompleted = true;
|
||||
}
|
||||
|
||||
public bool WaitAnimationCompleted()
|
||||
{
|
||||
var result = _actionAnimationCompleted;
|
||||
_actionAnimationCompleted = false;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user