File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- #if UNITY_5
1
+ #if UNITY_5 || UNITY_2017_1_OR_NEWER
2
2
using System . IO ;
3
3
using KEngine ;
4
4
using KSFramework ;
Original file line number Diff line number Diff line change 4
4
using KEngine ;
5
5
using KEngine . UI ;
6
6
using UnityEditor ;
7
- #if UNITY_5
7
+ #if UNITY_5 || UNITY_2017_1_OR_NEWER
8
8
using UnityEditor . SceneManagement ;
9
9
#endif
10
10
@@ -61,7 +61,7 @@ public static void OpenLastScene()
61
61
if ( ! string . IsNullOrEmpty ( lastScene ) )
62
62
{
63
63
64
- #if UNITY_5
64
+ #if UNITY_5 || UNITY_2017_1_OR_NEWER
65
65
EditorSceneManager . OpenScene ( lastScene ) ;
66
66
#else
67
67
EditorApplication . OpenScene ( lastScene ) ;
@@ -77,7 +77,7 @@ public static void OpenLastScene()
77
77
[ MenuItem ( "KEngine/Open Main Scene %&i" ) ]
78
78
public static void OpenMainScene ( )
79
79
{
80
- #if UNITY_5
80
+ #if UNITY_5 || UNITY_2017_1_OR_NEWER
81
81
var currentScene = EditorSceneManager . GetActiveScene ( ) . path ;
82
82
#else
83
83
var currentScene = EditorApplication . currentScene ;
@@ -87,7 +87,7 @@ public static void OpenMainScene()
87
87
EditorPrefs . SetString ( LastScenePrefKey , currentScene ) ;
88
88
89
89
Log . Info ( "Open Main Game Scene!" ) ;
90
- #if UNITY_5
90
+ #if UNITY_5 || UNITY_2017_1_OR_NEWER
91
91
EditorSceneManager . OpenScene ( mainScene ) ;
92
92
#else
93
93
EditorApplication . OpenScene ( mainScene ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public virtual void InitBridge()
14
14
{
15
15
EventSystem = new GameObject ( "EventSystem" ) . AddComponent < EventSystem > ( ) ;
16
16
EventSystem . gameObject . AddComponent < StandaloneInputModule > ( ) ;
17
- #if ! UNITY_5
17
+ #if UNITY_4
18
18
EventSystem . gameObject . AddComponent < TouchInputModule > ( ) ;
19
19
#else
20
20
EventSystem . gameObject . GetComponent < StandaloneInputModule > ( ) . forceModuleActive = true ;
You can’t perform that action at this time.
0 commit comments