Exemplo n.º 1
0
    public void OnClickSave()
    {
        playerCtrl = GameObject.FindWithTag("Player").GetComponent <PlayerCtrl>();
        game       = GameObject.FindWithTag("World").GetComponent <Game>();

        RecInfo info = new RecInfo();

        info.SceneName     = game.SceneName;
        info.CharacterName = playerCtrl.CharacterName;
        info.ch_pos        = playerCtrl.ch_pos;
        info.ch_rot        = playerCtrl.ch_rot;

        SaveLoadData.Write(info, Application.dataPath + "/Output/Info_Attributes.xml");
    }