diff --git a/Assets/Scripts/DraggableUI.cs b/Assets/Scripts/DraggableUI.cs index 2131357..a1b2b96 100644 --- a/Assets/Scripts/DraggableUI.cs +++ b/Assets/Scripts/DraggableUI.cs @@ -14,7 +14,8 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler void CreateOutline() { - var borderColor = Color.cyan; + var color = BazookaManager.Instance.GetColorSettingButton(); + Color borderColor = new(((float)color[0]) / 255f, ((float)color[1]) / 255f, ((float)color[2]) / 255f); float thickness = 2f; CreateSide("Top", new Vector2(0, 1), new Vector2(1, 1), new Vector2(0, thickness), borderColor); @@ -43,6 +44,10 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler public void Awake() { Instance = this; + } + + void Start() + { CreateOutline(); }