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

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

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