Beispiel #1
0
 private void OnDecisionButton()
 {
     CMD_ChipSortModal.data.Copy(this.tempData);
     CMD_ChipSortModal.SaveSetting();
     base.SetForceReturnValue(1);
     this.ClosePanel(true);
 }
Beispiel #2
0
 public static void LoadSetting()
 {
     if (PlayerPrefs.HasKey("ChipSortData"))
     {
         string @string = PlayerPrefs.GetString("ChipSortData");
         try
         {
             CMD_ChipSortModal.data.Copy(JsonUtility.FromJson <CMD_ChipSortModal.Data>(@string));
         }
         catch
         {
             CMD_ChipSortModal.data.Copy(new CMD_ChipSortModal.Data());
             CMD_ChipSortModal.SaveSetting();
         }
     }
     else
     {
         CMD_ChipSortModal.data.Copy(new CMD_ChipSortModal.Data());
     }
 }