Selecting a weapon now displays weapon group toggles Added global drag and drop handling in game manager Weapon group toggles can be dragged to action bar to bind them
15 lines
403 B
C#
15 lines
403 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UniRx.Triggers;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class WeaponGroupElement : MonoBehaviour
|
|
{
|
|
public TextMeshProUGUI Label;
|
|
public Button Button;
|
|
public ObservableBeginDragTrigger BeginDragTrigger;
|
|
public ObservableDragTrigger DragTrigger;
|
|
public ObservableEndDragTrigger EndDragTrigger;
|
|
}
|