예제 #1
0
 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;
     }
 }