diff --git a/Assets/Scripts/DraggableUI.cs b/Assets/Scripts/DraggableUI.cs index a1b2b96..1da1073 100644 --- a/Assets/Scripts/DraggableUI.cs +++ b/Assets/Scripts/DraggableUI.cs @@ -41,7 +41,7 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler outlineSides.Add(go); } - public void Awake() + void Awake() { Instance = this; } @@ -51,13 +51,13 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler CreateOutline(); } - public void OnEnable() + void OnEnable() { string key = "DraggedUI" + uiName; if (PlayerPrefs.HasKey(key) && TryParseVector3(PlayerPrefs.GetString(key), out Vector3 savedPos)) transform.localPosition = savedPos; } - public void Update() + void Update() { foreach (var side in outlineSides) side.SetActive(canDrag);