예제 #1
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
예제 #2
0
        private void ResetPagesButton(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.defRunePageIDs = default;
            Properties.Settings.Default.defItemSetIDs  = default;

            ComboBoxItem defaultRunePage = (ComboBoxItem)RuneMenu.FindName("DefaultRunePage");

            defaultRunePage.Tag = default;

            ComboBoxItem defaultItemPage = (ComboBoxItem)ItemMenu.FindName("DefaultItemPage");

            defaultItemPage.Tag = default;
        }