-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from kreghek/master
Подготовка релиза на GameDev Irkutsk
- Loading branch information
Showing
132 changed files
with
9,767 additions
and
729 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using UnityEngine; | ||
using UnityEditor; | ||
using UnityEditor.SceneManagement; | ||
|
||
[InitializeOnLoad] | ||
public class AutoSaveOnRunMenuItem | ||
{ | ||
public const string MenuName = "Tools/Autosave On Run"; | ||
private static bool isToggled; | ||
|
||
static AutoSaveOnRunMenuItem() | ||
{ | ||
EditorApplication.delayCall += () => | ||
{ | ||
isToggled = EditorPrefs.GetBool(MenuName, false); | ||
UnityEditor.Menu.SetChecked(MenuName, isToggled); | ||
SetMode(); | ||
}; | ||
} | ||
|
||
[MenuItem(MenuName)] | ||
private static void ToggleMode() | ||
{ | ||
isToggled = !isToggled; | ||
UnityEditor.Menu.SetChecked(MenuName, isToggled); | ||
EditorPrefs.SetBool(MenuName, isToggled); | ||
SetMode(); | ||
} | ||
|
||
private static void SetMode() | ||
{ | ||
if (isToggled) | ||
{ | ||
EditorApplication.playModeStateChanged += AutoSaveOnRun; | ||
} | ||
else | ||
{ | ||
EditorApplication.playModeStateChanged -= AutoSaveOnRun; | ||
} | ||
} | ||
|
||
private static void AutoSaveOnRun(PlayModeStateChange state) | ||
{ | ||
if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying) | ||
{ | ||
Debug.Log("Auto-Saving before entering Play mode"); | ||
|
||
EditorSceneManager.SaveOpenScenes(); | ||
AssetDatabase.SaveAssets(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(81%)
Zilon.Client/Assets/Resources/Icons/props/closed-leather-helmet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions
16
Zilon.Client/Assets/Resources/Icons/props/closed-leather-helmet.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions
91
Zilon.Client/Assets/Resources/Icons/props/knitted-hat.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+1.27 KB
(600%)
Zilon.Client/Assets/Resources/Icons/props/leather-helmet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 11 additions & 19 deletions
30
Zilon.Client/Assets/Resources/Icons/props/leather-helmet.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,11 @@ | |
] | ||
} | ||
] | ||
}, | ||
{ | ||
"SchemeSid": "knitted-hat", | ||
|
||
"Weight": 10 | ||
}, | ||
{ | ||
"SchemeSid": "leather-helmet", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
}, | ||
{ | ||
"SchemeSid": null, | ||
"Weight": 300 | ||
"Weight": 600 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.