Exemplo n.º 1
0
 public ConstArg(
     IWaypointsFollowerAdaptor adaptor,
     float followSpeed,
     int processOrder
     ) : base(adaptor)
 {
     thisFollowSpeed  = followSpeed;
     thisProcessOrder = processOrder;
 }
        IWaypointsFollowerAdaptor CollectWaypointsFollowerAdaptor()
        {
            IWaypointsFollowerAdaptor adaptor = (IWaypointsFollowerAdaptor)this.transform.GetComponent(typeof(IWaypointsFollowerAdaptor));

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