protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus) { OutOfControlType outOfControlType = ((ObjAgent)pAgent).GetOutOfControlType(); OutOfControlType taunt = OutOfControlType.Taunt; return((outOfControlType != taunt) ? EBTStatus.BT_FAILURE : EBTStatus.BT_SUCCESS); }
protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus) { OutOfControlType outOfControlType = ((ObjAgent)pAgent).GetOutOfControlType(); OutOfControlType outOfControlType2 = OutOfControlType.Terror; return((outOfControlType == outOfControlType2) ? EBTStatus.BT_SUCCESS : EBTStatus.BT_FAILURE); }
protected override EBTStatus update_impl(Agent pAgent, EBTStatus childStatus) { OutOfControlType outOfControlType = ((ObjAgent)pAgent).GetOutOfControlType(); OutOfControlType outOfControlType2 = OutOfControlType.Taunt; bool flag = outOfControlType == outOfControlType2; return((!flag) ? EBTStatus.BT_FAILURE : EBTStatus.BT_SUCCESS); }
public OutOfControl(bool isOutOfControl = false, OutOfControlType outOfControlType = OutOfControlType.Null) { this.m_isOutOfControl = isOutOfControl; this.m_outOfControlType = outOfControlType; }
public void ResetOnUse() { this.m_isOutOfControl = false; this.m_outOfControlType = OutOfControlType.Null; }