public void Start()
 {
     if (GameSave.Exists())
     {
         GameData data = GameSave.GetData();
         transform.position = data.playerPosition;
     }
 }
示例#2
0
    private void Start()
    {
        GameData data = GameSave.GetData();

        if (GameSave.Exists())
        {
            // Get the data
            data = GameSave.GetData();
            transform.position = data.playerPos;
            score = data.score;
            transform.rotation = data.playerRot;
        }
    }