public void SpawnPointer() { if (playerPointer == null) { playerPointer = Instantiate(Resources.Load("Prefabs/SpawnPointer") as GameObject, transform.GetChild(0)); Vector3 pos = _gps.PingMap(); if (isLocationSpoofed) { pos = _gps.PingMapTest(-73.124995f, 40.915595f); } playerPointer.transform.localPosition = pos; playerData.playerPointer = playerPointer; } }