// Use this for initialization void Start() { _player = new BaseCharacter(); _player.Awake(); addExp = false; js = GameObject.FindGameObjectWithTag("PlayerInventory"); jScript = js.GetComponent <PlayerInventory>(); SetStats(); if (PlayerPrefs.HasKey("HP")) { jScript.fullHP = PlayerPrefs.GetInt("HP"); jScript.currentHP = jScript.fullHP; } if (PlayerPrefs.HasKey("MP")) { jScript.fullMP = PlayerPrefs.GetInt("MP"); jScript.currentMP = PlayerPrefs.GetInt("MP"); } }