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; } }
public void SetDragDropOrder(DragDrop_Order dragDrop_Order) { this.dragDrop_Order = dragDrop_Order; }