Exemplo n.º 1
0
 ///Returns if a conditional action is ready at the specified range.
 public bool IsReadyConditionalAtRange(TRIGGER condition, float target_distance)
 {
     if (m_action_trigger != condition)
     {
         return(false);
     }
     if (m_requires_target && target_distance >= m_range)
     {
         return(false);
     }
     return(m_action_timer.IsReady());
 }