Example #1
0
    //--------------------
    // Clearした時の処理
    //--------------------
    public void Clear()
    {
        stop = true;

        // ゲームクリアシーンを重ねる
        cover_gameclear.Cover();

        // 所持中のパーツを保存
        data_manager.Save_Parts(Data_Manager.CATEGORY.BP, Data_Manager.STATE.NAME, bodys_UI);
        data_manager.Save_Parts(Data_Manager.CATEGORY.BP, Data_Manager.STATE.LIFE, bodys_UI);
        data_manager.Save_Parts(Data_Manager.CATEGORY.SP, Data_Manager.STATE.NAME, slots_UI);
        data_manager.Save_Parts(Data_Manager.CATEGORY.SP, Data_Manager.STATE.LIFE, slots_UI);
    }
 //-------------
 // 状態を保存
 //-------------
 public void Save_State()
 {
     data_manager.Save_Parts(Data_Manager.CATEGORY.BP, Data_Manager.STATE.NAME, bodys);
     data_manager.Save_Parts(Data_Manager.CATEGORY.BP, Data_Manager.STATE.LIFE, bodys);
     data_manager.Save_Parts(Data_Manager.CATEGORY.SP, Data_Manager.STATE.NAME, slots);
     data_manager.Save_Parts(Data_Manager.CATEGORY.SP, Data_Manager.STATE.LIFE, slots);
     data_manager.Save_Parts(Data_Manager.CATEGORY.GP, Data_Manager.STATE.NAME, stocks);
     data_manager.Save_Parts(Data_Manager.CATEGORY.GP, Data_Manager.STATE.LIFE, stocks);
 }