private float GetTime(Agent pAgent) { Debug.Check(this.GetNode() is DecoratorTime); DecoratorTime pNode = (DecoratorTime)(this.GetNode()); return(pNode != null?pNode.GetTime(pAgent) : 0); }
private int GetTime(Agent pAgent) { DecoratorTime decoratorTime = (DecoratorTime)base.GetNode(); return((decoratorTime == null) ? 0 : decoratorTime.GetTime(pAgent)); }