Example #1
0
        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!");
            }
        }
Example #2
0
 private void Awake()
 {
     sr     = GetComponent <SpriteRenderer>();
     rb     = GetComponent <Rigidbody2D>();
     living = GetComponent <Living>();
 }
Example #3
0
 private void Awake()
 {
     entity = GetComponent <Living>();
 }