public void SaveGame() { Living player = FindObjectOfType <Player>(); if (GameData.Save(player)) { GameManager.singleton.Paused = false; uiManager.SetPauseScreen(false); } else { Debug.LogError("There was an error saving!"); } }
private void Awake() { sr = GetComponent <SpriteRenderer>(); rb = GetComponent <Rigidbody2D>(); living = GetComponent <Living>(); }
private void Awake() { entity = GetComponent <Living>(); }