Exemplo n.º 1
0
        public override void SetUpReference()
        {
            base.SetUpReference();
            IGlidingTarget glider = gliderAdaptor.GetGlidingTarget();

            thisGliderWaypointsFollower.SetGlider(glider);
        }
Exemplo n.º 2
0
 void DrawGlidingTargetsByWaypointCurve(Rect rect)
 {
     if (thisSystemIsReady)
     {
         IGlidingTargetSpawnPoint[] spawnPoints = CollectGlidingTargetSpawnPoints();
         string result = "";
         foreach (IGlidingTargetSpawnPoint spawnPoint in spawnPoints)
         {
             IGlidingTarget target = (IGlidingTarget)spawnPoint.GetSpawnedTarget();
             result += "point #" + spawnPoint.GetIndex().ToString() + ": "
             ;
             if (target == null)
             {
                 result += "null";
             }
             else
             {
                 result += "target# " + target.GetIndex().ToString();
             }
             result += "\n";
         }
         GUI.Label(
             rect,
             result
             );
     }
 }
Exemplo n.º 3
0
 protected override void ExecuteImple(
     IWaypointsFollower follower
     )
 {
     if (follower.GetCurrentWaypointCurve() == thisDeactivateGliderWaypointEventAdaptor.GetThisGlidingTargetWaypointCurve())
     {
         IGliderWaypointsFollower gliderWaypointsFollower = (IGliderWaypointsFollower)follower;
         IGlidingTarget           glider = gliderWaypointsFollower.GetGlider();
         glider.Deactivate();
     }
 }
 public void SetGlider(IGlidingTarget target)
 {
     thisGlider = target;
 }