public AgentOperandUpdateResult Update(HTNAgent agent) { if (Time.time >= _endTime) { return(AgentOperandUpdateResult.Success); } return(AgentOperandUpdateResult.Pending); }
public AgentOperandUpdateResult Update(HTNAgent agent) { if (Time.time >= _endTime) { //agent.animator?.SetBool(_boolParam, false); return(AgentOperandUpdateResult.Success); } return(AgentOperandUpdateResult.Pending); }
public AgentOperandUpdateResult Update(HTNAgent agent) { agent.navigation.LerpTo(_position, _rotation); return(agent.navigation.hasArrived ? AgentOperandUpdateResult.Success : AgentOperandUpdateResult.Pending); }
public void Start(HTNAgent agent) { agent.navigation.Disable(); }
public void Start(HTNAgent agent) { agent.navigation.Disable(); //agent.animator?.SetBool(_boolParam, true); _endTime = Time.time + _duration; }
public AgentOperandUpdateResult Update(HTNAgent agent) { return(_lambda()); }
public void Start(HTNAgent agent) { }
public void Start(HTNAgent agent) { _endTime = Time.time + _duration; }