MusicBeat
This commit is contained in:
@@ -14,8 +14,8 @@ namespace Cielonos.MainGame.Characters.AI
|
||||
|
||||
public override TaskStatus OnUpdate()
|
||||
{
|
||||
Timer timer = self.selfTimeSm.coolDownTimers[timerName.Value];
|
||||
bool conditionMet = checkIfCompleted ? timer.IsCompleted : !timer.IsCompleted;
|
||||
CooldownTimer cooldownTimer = self.selfTimeSm.coolDownTimers[timerName.Value];
|
||||
bool conditionMet = checkIfCompleted ? cooldownTimer.IsCompleted : !cooldownTimer.IsCompleted;
|
||||
return conditionMet ? TaskStatus.Success : TaskStatus.Failure;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user