SwitchScene.cs 707 B

1234567891011121314151617181920212223242526
  1. #if UNITY_EDITOR
  2. using UnityEngine;
  3. using UnityEditor;
  4. public class SwitchScene : MonoBehaviour {
  5. [MenuItem("Scene/1. Loader %1")]
  6. public static void OpenLoader()
  7. {
  8. EditorApplication.OpenScene("Assets/!Santa/Scenes/_loader.unity");
  9. }
  10. [MenuItem("Scene/2. Game %2")]
  11. public static void OpenGame()
  12. {
  13. EditorApplication.OpenScene("Assets/!Santa/Scenes/Santa.unity");
  14. }
  15. [MenuItem("Android/Enter key and code")]
  16. public static void AndroidCode()
  17. {
  18. PlayerSettings.Android.keystorePass = "I7YPU9E5q2v77vh";
  19. PlayerSettings.Android.keyaliasName = "release";
  20. PlayerSettings.Android.keyaliasPass = "refsNQflLD3cHvr";
  21. }
  22. }
  23. #endif