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