projectEli/Assets/NeoFPS/Core/MotionGraphs/Conditions/CompletedCondition.cs
2022-11-06 20:28:33 -05:00

21 lines
592 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NeoFPS.CharacterMotion;
using NeoFPS.CharacterMotion.Parameters;
namespace NeoFPS.CharacterMotion.Conditions
{
[MotionGraphElement("Graph/Completed")]
public class CompletedCondition : MotionGraphCondition
{
public override bool CheckCondition(MotionGraphConnectable connectable)
{
var state = connectable as MotionGraphState;
if (state == null)
return false;
else
return state.completed;
}
}
}