Why'd I do this
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user