Correction positionManager

This commit is contained in:
Jlim 2021-11-15 22:06:18 -05:00
parent a0c11be8f6
commit f23ed304ba

View File

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