コード例 #1
0
 public ConstArg(
     IWaypointsFollowerAdaptor adaptor,
     float followSpeed,
     int processOrder
     ) : base(adaptor)
 {
     thisFollowSpeed  = followSpeed;
     thisProcessOrder = processOrder;
 }
コード例 #2
0
        IWaypointsFollowerAdaptor CollectWaypointsFollowerAdaptor()
        {
            IWaypointsFollowerAdaptor adaptor = (IWaypointsFollowerAdaptor)this.transform.GetComponent(typeof(IWaypointsFollowerAdaptor));

            if (adaptor == null)
            {
                throw new System.InvalidOperationException(
                          "IWaypointsFollowerAdaptor is missing on GlidingTargetAdaptor"
                          );
            }
            return(adaptor);
        }