projectEli/Assets/NeoFPS/Core/MotionGraphs/Conditions/CompletedCondition.cs

21 lines
592 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
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;
}
}
}