Ejemplo n.º 1
0
 public static void TargetWater(Unit unit) {
     Vector3 closestWaterPoint = UnitQueries.ClosestWater(unit);
     unit.GetComponent<Target>().Change(closestWaterPoint);
 }
Ejemplo n.º 2
0
    public static bool SeesWater(Unit unit)
    {
        Vector3 closestWaterSource = UnitQueries.ClosestWater(unit);

        return(closestWaterSource != Vector3.zero);
    }