Пример #1
0
 /// <summary>
 /// Hitting the action key does nothing for this menu item type.
 /// </summary>
 override public void DoAction()
 {
     CharacterLoader.ShouldLoadCharacters(new List <string> ()
     {
         supportingString
     });
     if (sceneToLoadOnSelect != null && sceneToLoadOnSelect != "")
     {
                         #if !UNITY_4_6 && !UNITY_4_7 && !UNITY_5_1 && !UNITY_5_2
         LevelManager.PreviousLevel = SceneManager.GetActiveScene().name;
         SceneManager.LoadScene(sceneToLoadOnSelect);
                         #else
         LevelManager.PreviousLevel = Application.loadedLevelName;
         Application.LoadLevel(sceneToLoadOnSelect);
                         #endif
     }
 }