Exemple #1
0
    void Start()
    {
        switch (orderType)
        {
        case OrderManager.OrderType.Move:
            dragDrop_Order = OrderManager.instance.moveOrderDragDrop.GetComponent <DragDrop_Order>();
            break;

        case OrderManager.OrderType.Administration:
            dragDrop_Order = OrderManager.instance.AdminOrderDragDrop.GetComponent <DragDrop_Order>();
            break;

        case OrderManager.OrderType.Guerilla:
            dragDrop_Order = OrderManager.instance.guerillaOrderDragDrop.GetComponent <DragDrop_Order>();
            break;

        case OrderManager.OrderType.Entrenchment:
            dragDrop_Order = OrderManager.instance.entrenchmentOrderDragDrop.GetComponent <DragDrop_Order>();
            break;
        }
    }
Exemple #2
0
 public void SetDragDropOrder(DragDrop_Order dragDrop_Order)
 {
     this.dragDrop_Order = dragDrop_Order;
 }