// 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); } } }
public bool unloadingComplete() { if (transported == null || !transported.interactsWithTransport(false)) { transported = null; return(true); } else { return(false); } }