21 lines
496 B
C#
21 lines
496 B
C#
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;
|
|
}
|
|
}
|
|
} |