コード例 #1
0
            private float GetTime(Agent pAgent)
            {
                Debug.Check(this.GetNode() is DecoratorTime);
                DecoratorTime pNode = (DecoratorTime)(this.GetNode());

                return(pNode != null?pNode.GetTime(pAgent) : 0);
            }
コード例 #2
0
            private int GetTime(Agent pAgent)
            {
                DecoratorTime decoratorTime = (DecoratorTime)base.GetNode();

                return((decoratorTime == null) ? 0 : decoratorTime.GetTime(pAgent));
            }