// Use this for initialization void Start() { point = GameObject.FindWithTag("point").GetComponent <RTLTextMeshPro>(); string loadString = PlayerPrefs.GetString("PlayerData"); model = JsonUtility.FromJson <PlayerModel.PlayerData>(loadString); point.text = model.points.ToString(); }
// Use this for initialization void Start() { ServiceLocator.Instance.eventManager.Register(this); notif = GameObject.FindWithTag("notif").GetComponent <RTLTextMeshPro>(); point = GameObject.FindWithTag("point").GetComponent <RTLTextMeshPro>(); notif.enabled = false; string loadString = PlayerPrefs.GetString("PlayerData"); model = JsonUtility.FromJson <PlayerModel.PlayerData>(loadString); point.text = model.points.ToString(); }