// Start is called before the first frame update void Start() { _playerstatus = FindObjectOfType <playershooting>(); if (PlayerPrefs.GetString("loadit") == "true") { healcount = _playerstatus.mystats.healcount; } else if (PlayerPrefs.GetString("loadit") == "false") { healcount = 0; } }
// Start is called before the first frame update void Start() { _playerstats = GameObject.FindObjectOfType <playershooting>(); if (PlayerPrefs.GetString("loadit") == "true") { life = _playerstats.mystats.life; } else if (PlayerPrefs.GetString("loadit") == "false") { life = 1; lifeimage.fillAmount = 1; } }
private void Awake() { _playerstat = GameObject.FindObjectOfType <playershooting>(); load(); }