File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ using StringTools;
10
10
class ScriptedClass extends FlxUIState
11
11
{
12
12
public var script : HScript = null ;
13
+ public var path : String = " " ;
13
14
14
15
public static var instance : ScriptedClass = null ;
15
16
public static var trackerFolder : Int = 0 ;
16
- var path : String = " " ;
17
17
18
18
public function new (fileName : String , ? args : Array <Dynamic >)
19
19
{
@@ -29,14 +29,14 @@ class ScriptedClass extends FlxUIState
29
29
30
30
script = new HScript (path , false );
31
31
script .execute (path , false );
32
-
33
- scriptExecute (" new" , args );
34
32
}
35
33
catch (e : Dynamic )
36
34
{
37
35
script = null ;
38
36
trace (' Error getting script from $fileName ! \n $e ' );
39
37
}
38
+
39
+ scriptExecute (" new" , args );
40
40
}
41
41
42
42
override function create ()
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ using StringTools;
9
9
class ScriptedSubClass extends FlxUISubState
10
10
{
11
11
public var script : HScript = null ;
12
+ public var path : String = " " ;
12
13
13
14
public static var instance : ScriptedSubClass = null ;
14
15
public static var trackerFolder : Int = 0 ;
15
- var path : String = " " ;
16
16
17
17
public function new (fileName : String , ? args : Array <Dynamic >)
18
18
{
@@ -28,14 +28,14 @@ class ScriptedSubClass extends FlxUISubState
28
28
29
29
script = new HScript (path , false );
30
30
script .execute (path , false );
31
-
32
- scriptExecute (" new" , args );
33
31
}
34
32
catch (e : Dynamic )
35
33
{
36
34
script = null ;
37
35
trace (' Error getting script from $fileName ! \n $e ' );
38
36
}
37
+
38
+ scriptExecute (" new" , args );
39
39
}
40
40
41
41
override function create ()
You can’t perform that action at this time.
0 commit comments