Example #1
0
        public AgentOperandUpdateResult Update(HTNAgent agent)
        {
            if (Time.time >= _endTime)
            {
                return(AgentOperandUpdateResult.Success);
            }

            return(AgentOperandUpdateResult.Pending);
        }
Example #2
0
        public AgentOperandUpdateResult Update(HTNAgent agent)
        {
            if (Time.time >= _endTime)
            {
                //agent.animator?.SetBool(_boolParam, false);
                return(AgentOperandUpdateResult.Success);
            }

            return(AgentOperandUpdateResult.Pending);
        }
Example #3
0
 public AgentOperandUpdateResult Update(HTNAgent agent)
 {
     agent.navigation.LerpTo(_position, _rotation);
     return(agent.navigation.hasArrived ? AgentOperandUpdateResult.Success : AgentOperandUpdateResult.Pending);
 }
Example #4
0
 public void Start(HTNAgent agent)
 {
     agent.navigation.Disable();
 }
Example #5
0
 public void Start(HTNAgent agent)
 {
     agent.navigation.Disable();
     //agent.animator?.SetBool(_boolParam, true);
     _endTime = Time.time + _duration;
 }
Example #6
0
 public AgentOperandUpdateResult Update(HTNAgent agent)
 {
     return(_lambda());
 }
Example #7
0
 public void Start(HTNAgent agent)
 {
 }
Example #8
0
 public void Start(HTNAgent agent)
 {
     _endTime = Time.time + _duration;
 }