diff --git a/Assets/Scripts/Utilities/PositionManager.cs b/Assets/Scripts/Utilities/PositionManager.cs index 5c710f1..8d1669f 100644 --- a/Assets/Scripts/Utilities/PositionManager.cs +++ b/Assets/Scripts/Utilities/PositionManager.cs @@ -1,3 +1,4 @@ +using Assets.Scripts.Utilities; using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -5,13 +6,13 @@ using UnityEngine; public class PositionManager : MonoBehaviour { public GameObject player; - public List data; + private List data; public bool notSended = true; // Start is called before the first frame update void Start() { - data = ""; + data = new List(); StartCoroutine("TackerExecute"); } @@ -30,7 +31,7 @@ public class PositionManager : MonoBehaviour yield return new WaitForSeconds(1.0f); } } - public sendData() + public void sendData() { notSended = false; DataSaver.SavePosition(data);