示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (target != null)
     {
         if (target.interactsWithTransport(true))
         {
             GetComponent <UnitBehaviour>().SetUnitDestination(transform.position);
         }
         //target.setRally(getRallyPoint(), transform.position);//???????
         else if (GetComponent <UnitBehaviour>().Pathfinder.HasDestination())
         {
             GetComponent <UnitBehaviour>().SetUnitDestination(target.transform.position);
         }
     }
 }
示例#2
0
 public bool unloadingComplete()
 {
     if (transported == null || !transported.interactsWithTransport(false))
     {
         transported = null;
         return(true);
     }
     else
     {
         return(false);
     }
 }