@@ -7,15 +7,16 @@ namespace Unity.Netcode.Samples.BossRoom
77 /// <summary>
88 /// Implement your Tutorial callbacks here.
99 /// </summary>
10- [ CreateAssetMenu ( fileName = DefaultFileName , menuName = "Tutorials/" + DefaultFileName + " Instance" ) ]
10+ [ CreateAssetMenu ( fileName = k_DefaultFileName , menuName = "Tutorials/" + k_DefaultFileName + " Instance" ) ]
1111 public class TutorialCallbacks : ScriptableObject
1212 {
13- [ SerializeField ] SceneAsset m_StartupScene ;
13+ [ SerializeField ]
14+ SceneAsset m_StartupScene ;
1415
1516 /// <summary>
1617 /// The default file name used to create asset of this class type.
1718 /// </summary>
18- public const string DefaultFileName = "TutorialCallbacks" ;
19+ const string k_DefaultFileName = "TutorialCallbacks" ;
1920
2021 /// <summary>
2122 /// Creates a TutorialCallbacks asset and shows it in the Project window.
@@ -26,7 +27,7 @@ public class TutorialCallbacks : ScriptableObject
2627 /// <returns>The created asset</returns>
2728 public static ScriptableObject CreateAndShowAsset ( string assetPath = null )
2829 {
29- assetPath = assetPath ?? $ "{ TutorialEditorUtils . GetActiveFolderPath ( ) } /{ DefaultFileName } .asset";
30+ assetPath = assetPath ?? $ "{ TutorialEditorUtils . GetActiveFolderPath ( ) } /{ k_DefaultFileName } .asset";
3031 var asset = CreateInstance < TutorialCallbacks > ( ) ;
3132 AssetDatabase . CreateAsset ( asset , AssetDatabase . GenerateUniqueAssetPath ( assetPath ) ) ;
3233 EditorUtility . FocusProjectWindow ( ) ; // needed in order to make the selection of newly created asset to really work
@@ -38,12 +39,12 @@ public void StartTutorial(Tutorial tutorial)
3839 {
3940 TutorialWindow . StartTutorial ( tutorial ) ;
4041 }
41-
42+
4243 public bool IsConnectedToUgs ( )
4344 {
4445 return CloudProjectSettings . projectBound ;
4546 }
46-
47+
4748 public void ShowServicesSettings ( )
4849 {
4950 SettingsService . OpenProjectSettings ( "Project/Services" ) ;
0 commit comments