using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEditor;
using Microsoft.Win32;
public class loadgame : MonoBehaviour
{
public GameObject Rider;
public GameObject player;
public GameObject Bear;
public GameObject Duck;
public GameObject Ibex;
public GameObject Orc;
public GameObject Dear;
public GameObject Wolf;
public GameObject Bandit;
public GameObject Boar;
public GameObject Rabbit;
public GameObject Horse;
private Vector3 RiderPosition;
private Vector3 playerPosition;
private Vector3 WolfPosition;
private Vector3 BoarPosition;
private Vector3 BanditPosition;
private Vector3 DearPosition;
private Vector3 OrcPosition;
private Vector3 IbexPosition;
private Vector3 DuckPosition;
private Vector3 BearPosition;
private Vector3 RabbitPosition;
private Vector3 HorsePosition;
private int Score;
private int Enemyhealth;
private int PlayerHealth;
private int HorseHealth;
private int Arrow;
private int Cristal;
private int Medicine;
public Button button;
private string filesavepath;
private string filename;
int Saved_scene;
private string currentSceneName;
void Start()
{
button.onClick.AddListener(OnButtonClick);
currentSceneName = SceneManager.GetActiveScene().name;
}
public void OnButtonClick()
{
string sceneToLoad = PlayerPrefs.GetString("savedScene");
SceneManager.LoadScene(sceneToLoad);
LoadRiderPosition(Rider, "Rider");
LoadplayerPosition(player, "Player");
LoadDuckPosition(Duck, "Duck");
LoadIbexPosition(Ibex, "Ibex");
LoadOrcPosition(Orc, "Orc");
LoadDearPosition(Dear, "Dear");
LoadWolfPosition(Wolf, "Wolf");
LoadBanditPosition(Bandit, "Bandit");
LoadBoarPosition(Boar, "Boar");
LoadRabbitPosition(Rabbit, "Rabbit");
LoadHorsePosition(Horse, "Horse");
LoadPlayerStats();
}
private void LoadPlayerStats()
{
int score = PlayerPrefs.GetInt("Score");
int medicine = PlayerPrefs.GetInt("Medicine");
int arrow = PlayerPrefs.GetInt("Arrow");
Medicines.j = medicine;
cristals.h = Cristal;
Hunter_arrow.l = Arrow;
Skor_t.sukr3 = score;
}
private void LoadRiderPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadplayerPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadDuckPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadIbexPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadOrcPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadDearPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadWolfPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadBanditPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadBoarPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadRabbitPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadHorsePosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
}
-------
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class Savesystem : MonoBehaviour
{
public GameObject Rider;
public GameObject player;
public GameObject Bear;
public GameObject Duck;
public GameObject Ibex;
public GameObject Orc;
public GameObject Dear;
public GameObject Wolf;
public GameObject Bandit;
public GameObject Boar;
public GameObject Rabbit;
public GameObject Horse;
private Vector3 RiderPosition;
private Vector3 playerPosition;
private Vector3 WolfPosition;
private Vector3 BoarPosition;
private Vector3 BanditPosition;
private Vector3 DearPosition;
private Vector3 OrcPosition;
private Vector3 IbexPosition;
private Vector3 DuckPosition;
private Vector3 BearPosition;
private Vector3 RabbitPosition;
private Vector3 HorsePosition;
private int Score;
private int Enemyhealth;
private int PlayerHealth;
private int HorseHealth;
private int Arrow;
private int Cristal;
private int Medicine;
public Button button;
private string filesavepath;
private string filename;
int Saved_scene;
private string currentSceneName;
void Start()
{
button.onClick.AddListener(OnButtonClick);
}
public void OnButtonClick()
{
currentSceneName = SceneManager.GetActiveScene().name;
Debug.Log(Application.persistentDataPath);
if (Rider.activeInHierarchy)
{
Vector3 RiderPosition = Rider.transform.position;
PlayerPrefs.SetFloat($"posX", RiderPosition.x);
PlayerPrefs.SetFloat($"posY", RiderPosition.y);
PlayerPrefs.SetFloat($"posZ", RiderPosition.z);
}
if (player.activeInHierarchy)
{
PlayerPrefs.SetString("savedScene", currentSceneName);
Vector3 playerPosition = player.transform.position;
PlayerPrefs.SetFloat($"posX", playerPosition.x);
PlayerPrefs.SetFloat($"posY", playerPosition.y);
PlayerPrefs.SetFloat($"posZ", playerPosition.z);
Medicine = Medicines.j;
Cristal = cristals.h;
Arrow = Hunter_arrow.l;
Score = Skor_t.sukr3;
PlayerPrefs.SetInt("Score", Score);
PlayerPrefs.SetInt("Medicine", Medicine);
PlayerPrefs.SetInt("Cristal", Cristal);
PlayerPrefs.SetInt("Arrow", Arrow);
}
if (Bear.activeInHierarchy)
{
Vector3 BearPosition = Bear.transform.position;
PlayerPrefs.SetFloat($"posX", BearPosition.x);
PlayerPrefs.SetFloat($"posY", BearPosition.y);
PlayerPrefs.SetFloat($"posZ", BearPosition.z);
}
if (Duck.activeInHierarchy)
{
Vector3 DuckPosition = Duck.transform.position;
PlayerPrefs.SetFloat($"posX", DuckPosition.x);
PlayerPrefs.SetFloat($"posY", DuckPosition.y);
PlayerPrefs.SetFloat($"posZ", DuckPosition.z);
}
if (Ibex.activeInHierarchy)
{
Vector3 IbexPosition = Ibex.transform.position;
PlayerPrefs.SetFloat($"posX", Ibex.transform.position.x);
PlayerPrefs.SetFloat($"posY", Ibex.transform.position.y);
PlayerPrefs.SetFloat($"posZ", Ibex.transform.position.z);
}
if (Orc.activeInHierarchy)
{
Vector3 OrcPosition = Orc.transform.position;
PlayerPrefs.SetFloat($"posX", OrcPosition.x);
PlayerPrefs.SetFloat($"posY", OrcPosition.y);
PlayerPrefs.SetFloat($"posZ", OrcPosition.z);
}
if (Dear.activeInHierarchy)
{
Vector3 DearPosition = Dear.transform.position;
PlayerPrefs.SetFloat($"posX", DearPosition.x);
PlayerPrefs.SetFloat($"posY", DearPosition.y);
PlayerPrefs.SetFloat($"posZ", DearPosition.z);
}
if (Wolf.activeInHierarchy)
{
Vector3 WolfPosition = Wolf.transform.position;
PlayerPrefs.SetFloat($"{Bear}PosZ", BearPosition.z);
PlayerPrefs.SetFloat($"posX", WolfPosition.x);
PlayerPrefs.SetFloat($"posY", WolfPosition.y);
PlayerPrefs.SetFloat($"posZ", WolfPosition.z);
}
if (Bandit.activeInHierarchy)
{
Vector3 BanditPosition = Bandit.transform.position;
PlayerPrefs.SetFloat($"posX", BanditPosition.x);
PlayerPrefs.SetFloat($"posY", BanditPosition.y);
PlayerPrefs.SetFloat($"posZ", BanditPosition.z);
}
if (Boar.activeInHierarchy)
{
Vector3 BoarPosition = Boar.transform.position;
PlayerPrefs.SetFloat($"posX", BoarPosition.x);
PlayerPrefs.SetFloat($"posY", BoarPosition.y);
PlayerPrefs.SetFloat($"posZ", BoarPosition.z);
}
if (Rabbit.activeInHierarchy)
{
Vector3 RabbitPosition = Rabbit.transform.position;
PlayerPrefs.SetFloat($"posX", RabbitPosition.x);
PlayerPrefs.SetFloat($"posY", RabbitPosition.y);
PlayerPrefs.SetFloat($"posZ", RabbitPosition.z);
}
if (Horse.activeInHierarchy)
{
Vector3 HorsePosition = Horse.transform.position;
PlayerPrefs.SetFloat($"posX", HorsePosition.x);
PlayerPrefs.SetFloat($"posY", HorsePosition.y);
PlayerPrefs.SetFloat($"posZ", HorsePosition.z);
}
PlayerPrefs.Save();
}
}
merhabalar
unity 2020. 2.6.f1 32/ 64 windows 10/64
Sorun;regıstryde kaydı goruyorum fakat kordinat kısmında gecersiz DWORD degeri(32 bıt) gorulyorum.ayrıca load dedigimde degerler yuklenmıyor.neredehata yapıyorum yardımınızı beklerım sımdıden tesekkurler.Selamlar
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using UnityEditor;
using Microsoft.Win32;
public class loadgame : MonoBehaviour
{
public GameObject Rider;
public GameObject player;
public GameObject Bear;
public GameObject Duck;
public GameObject Ibex;
public GameObject Orc;
public GameObject Dear;
public GameObject Wolf;
public GameObject Bandit;
public GameObject Boar;
public GameObject Rabbit;
public GameObject Horse;
private Vector3 RiderPosition;
private Vector3 playerPosition;
private Vector3 WolfPosition;
private Vector3 BoarPosition;
private Vector3 BanditPosition;
private Vector3 DearPosition;
private Vector3 OrcPosition;
private Vector3 IbexPosition;
private Vector3 DuckPosition;
private Vector3 BearPosition;
private Vector3 RabbitPosition;
private Vector3 HorsePosition;
private int Score;
private int Enemyhealth;
private int PlayerHealth;
private int HorseHealth;
private int Arrow;
private int Cristal;
private int Medicine;
public Button button;
private string filesavepath;
private string filename;
int Saved_scene;
private string currentSceneName;
void Start()
{
button.onClick.AddListener(OnButtonClick);
currentSceneName = SceneManager.GetActiveScene().name;
}
public void OnButtonClick()
{
string sceneToLoad = PlayerPrefs.GetString("savedScene");
SceneManager.LoadScene(sceneToLoad);
LoadRiderPosition(Rider, "Rider");
LoadplayerPosition(player, "Player");
LoadDuckPosition(Duck, "Duck");
LoadIbexPosition(Ibex, "Ibex");
LoadOrcPosition(Orc, "Orc");
LoadDearPosition(Dear, "Dear");
LoadWolfPosition(Wolf, "Wolf");
LoadBanditPosition(Bandit, "Bandit");
LoadBoarPosition(Boar, "Boar");
LoadRabbitPosition(Rabbit, "Rabbit");
LoadHorsePosition(Horse, "Horse");
LoadPlayerStats();
}
private void LoadPlayerStats()
{
int score = PlayerPrefs.GetInt("Score");
int medicine = PlayerPrefs.GetInt("Medicine");
int arrow = PlayerPrefs.GetInt("Arrow");
Medicines.j = medicine;
cristals.h = Cristal;
Hunter_arrow.l = Arrow;
Skor_t.sukr3 = score;
}
private void LoadRiderPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadplayerPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadDuckPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadIbexPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadOrcPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadDearPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadWolfPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadBanditPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadBoarPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadRabbitPosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
private void LoadHorsePosition(GameObject obj, string keyPrefix)
{
float posX = PlayerPrefs.GetFloat(keyPrefix + "PosX");
float posY = PlayerPrefs.GetFloat(keyPrefix + "PosY");
float posZ = PlayerPrefs.GetFloat(keyPrefix + "PosZ");
obj.transform.position = new Vector3(posX, posY, posZ);
}
}
-------
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class Savesystem : MonoBehaviour
{
public GameObject Rider;
public GameObject player;
public GameObject Bear;
public GameObject Duck;
public GameObject Ibex;
public GameObject Orc;
public GameObject Dear;
public GameObject Wolf;
public GameObject Bandit;
public GameObject Boar;
public GameObject Rabbit;
public GameObject Horse;
private Vector3 RiderPosition;
private Vector3 playerPosition;
private Vector3 WolfPosition;
private Vector3 BoarPosition;
private Vector3 BanditPosition;
private Vector3 DearPosition;
private Vector3 OrcPosition;
private Vector3 IbexPosition;
private Vector3 DuckPosition;
private Vector3 BearPosition;
private Vector3 RabbitPosition;
private Vector3 HorsePosition;
private int Score;
private int Enemyhealth;
private int PlayerHealth;
private int HorseHealth;
private int Arrow;
private int Cristal;
private int Medicine;
public Button button;
private string filesavepath;
private string filename;
int Saved_scene;
private string currentSceneName;
void Start()
{
button.onClick.AddListener(OnButtonClick);
}
public void OnButtonClick()
{
currentSceneName = SceneManager.GetActiveScene().name;
Debug.Log(Application.persistentDataPath);
if (Rider.activeInHierarchy)
{
Vector3 RiderPosition = Rider.transform.position;
PlayerPrefs.SetFloat($"posX", RiderPosition.x);
PlayerPrefs.SetFloat($"posY", RiderPosition.y);
PlayerPrefs.SetFloat($"posZ", RiderPosition.z);
}
if (player.activeInHierarchy)
{
PlayerPrefs.SetString("savedScene", currentSceneName);
Vector3 playerPosition = player.transform.position;
PlayerPrefs.SetFloat($"posX", playerPosition.x);
PlayerPrefs.SetFloat($"posY", playerPosition.y);
PlayerPrefs.SetFloat($"posZ", playerPosition.z);
Medicine = Medicines.j;
Cristal = cristals.h;
Arrow = Hunter_arrow.l;
Score = Skor_t.sukr3;
PlayerPrefs.SetInt("Score", Score);
PlayerPrefs.SetInt("Medicine", Medicine);
PlayerPrefs.SetInt("Cristal", Cristal);
PlayerPrefs.SetInt("Arrow", Arrow);
}
if (Bear.activeInHierarchy)
{
Vector3 BearPosition = Bear.transform.position;
PlayerPrefs.SetFloat($"posX", BearPosition.x);
PlayerPrefs.SetFloat($"posY", BearPosition.y);
PlayerPrefs.SetFloat($"posZ", BearPosition.z);
}
if (Duck.activeInHierarchy)
{
Vector3 DuckPosition = Duck.transform.position;
PlayerPrefs.SetFloat($"posX", DuckPosition.x);
PlayerPrefs.SetFloat($"posY", DuckPosition.y);
PlayerPrefs.SetFloat($"posZ", DuckPosition.z);
}
if (Ibex.activeInHierarchy)
{
Vector3 IbexPosition = Ibex.transform.position;
PlayerPrefs.SetFloat($"posX", Ibex.transform.position.x);
PlayerPrefs.SetFloat($"posY", Ibex.transform.position.y);
PlayerPrefs.SetFloat($"posZ", Ibex.transform.position.z);
}
if (Orc.activeInHierarchy)
{
Vector3 OrcPosition = Orc.transform.position;
PlayerPrefs.SetFloat($"posX", OrcPosition.x);
PlayerPrefs.SetFloat($"posY", OrcPosition.y);
PlayerPrefs.SetFloat($"posZ", OrcPosition.z);
}
if (Dear.activeInHierarchy)
{
Vector3 DearPosition = Dear.transform.position;
PlayerPrefs.SetFloat($"posX", DearPosition.x);
PlayerPrefs.SetFloat($"posY", DearPosition.y);
PlayerPrefs.SetFloat($"posZ", DearPosition.z);
}
if (Wolf.activeInHierarchy)
{
Vector3 WolfPosition = Wolf.transform.position;
PlayerPrefs.SetFloat($"{Bear}PosZ", BearPosition.z);
PlayerPrefs.SetFloat($"posX", WolfPosition.x);
PlayerPrefs.SetFloat($"posY", WolfPosition.y);
PlayerPrefs.SetFloat($"posZ", WolfPosition.z);
}
if (Bandit.activeInHierarchy)
{
Vector3 BanditPosition = Bandit.transform.position;
PlayerPrefs.SetFloat($"posX", BanditPosition.x);
PlayerPrefs.SetFloat($"posY", BanditPosition.y);
PlayerPrefs.SetFloat($"posZ", BanditPosition.z);
}
if (Boar.activeInHierarchy)
{
Vector3 BoarPosition = Boar.transform.position;
PlayerPrefs.SetFloat($"posX", BoarPosition.x);
PlayerPrefs.SetFloat($"posY", BoarPosition.y);
PlayerPrefs.SetFloat($"posZ", BoarPosition.z);
}
if (Rabbit.activeInHierarchy)
{
Vector3 RabbitPosition = Rabbit.transform.position;
PlayerPrefs.SetFloat($"posX", RabbitPosition.x);
PlayerPrefs.SetFloat($"posY", RabbitPosition.y);
PlayerPrefs.SetFloat($"posZ", RabbitPosition.z);
}
if (Horse.activeInHierarchy)
{
Vector3 HorsePosition = Horse.transform.position;
PlayerPrefs.SetFloat($"posX", HorsePosition.x);
PlayerPrefs.SetFloat($"posY", HorsePosition.y);
PlayerPrefs.SetFloat($"posZ", HorsePosition.z);
}
PlayerPrefs.Save();
}
}
merhabalar
unity 2020. 2.6.f1 32/ 64 windows 10/64
Sorun;regıstryde kaydı goruyorum fakat kordinat kısmında gecersiz DWORD degeri(32 bıt) gorulyorum.ayrıca load dedigimde degerler yuklenmıyor.neredehata yapıyorum yardımınızı beklerım sımdıden tesekkurler.Selamlar

