示例#1
0
 protected void HandleQuicksave()
 {
     if (AllowQuicksaveInScene && UnityEngine.Input.GetKeyDown(ConfigState.Instance.QuicksaveKey))
     {
         SaveUtils.DoQuickSave();
         return;
     }
     if (UnityEngine.Input.GetKeyDown(ConfigState.Instance.QuickloadKey))
     {
         SaveUtils.DoQuickLoad();
         return;
     }
 }
        public void HandleSaveButtonClicked()
        {
            //technically, it's a quicksave!
            SaveUtils.DoQuickSave();

            //TODO save indicator, probably will use the same as quicksave and autosave

            //close the menu

            if (MainPanel.activeSelf)
            {
                MainPanel.SetActive(false);

                DoUnpause();
            }
        }