예제 #1
0
파일: Order.cs 프로젝트: sylafrs/rugby
 public static Order OrderDefensiveSide(Unit unit, Vector3 distance, bool right, TYPE_POSITION type)
 {
     Order o = new Order();
     o.type = TYPE.DEFENSIVE_SIDE;
     o.target = unit;
     o.position = type;
     o.point = new Vector3(distance.x, 0, distance.z * (right ? -1 : 1));
     return o;
 }
예제 #2
0
    public static Order OrderOffensiveSide(Unit unit, Vector3 distance, bool right, TYPE_POSITION type)
    {
        Order o = new Order();

        o.type     = TYPE.DEFENSIVE_SIDE;
        o.target   = unit;
        o.position = type;
        o.point    = new Vector3(distance.x, 0, distance.z * (right ? -1 : 1));
        return(o);
    }