Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UFrameIT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FrameIT
UFrameIT
Commits
ce90d4fe
Commit
ce90d4fe
authored
3 years ago
by
Stefan Richter
Browse files
Options
Downloads
Patches
Plain Diff
buildable stages
parent
9d74add4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/Scripts/StageStatic.cs
+9
-8
9 additions, 8 deletions
Assets/Scripts/StageStatic.cs
UserSettings/EditorUserSettings.asset
+3
-3
3 additions, 3 deletions
UserSettings/EditorUserSettings.asset
with
12 additions
and
11 deletions
Assets/Scripts/StageStatic.cs
+
9
−
8
View file @
ce90d4fe
using
System
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Linq
;
...
...
@@ -7,6 +7,7 @@
public
static
class
StageStatic
{
public
static
Dictionary
<
string
,
Stage
>
StageOfficial
;
public
static
Dictionary
<
string
,
Stage
>
StageLocal
;
public
static
Dictionary
<
string
,
int
>
Category
=
new
Dictionary
<
string
,
int
>
{
...
...
@@ -73,7 +74,7 @@ private static List<string> GenerateWorldList()
}
#else
_Worlds
=
new
List
<
string
>
{
"TreeWorld"
,
"RiverWorld"
};
//UnityEditor.
Debug.Log("WorldList might be incomplete!");
Debug
.
Log
(
"WorldList might be incomplete!"
);
#endif
return
_Worlds
;
}
...
...
@@ -119,9 +120,9 @@ public StageErrorStruct(bool category, bool id, bool name, bool description, boo
}
}
public
static
void
SetMode
(
Mode
mode
,
UnityEngine
.
GameObject
gameObject
=
null
)
public
static
void
SetMode
(
Mode
mode
,
GameObject
gameObject
=
null
)
{
gameObject
??=
new
UnityEngine
.
GameObject
();
gameObject
??=
new
GameObject
();
// handle StageStatic.mode
switch
(
StageStatic
.
mode
=
mode
)
...
...
@@ -228,7 +229,7 @@ public static void Delete(Stage stage)
(!
stage
.
use_install_folder
?
StageLocal
:
StageOfficial
).
Remove
(
stage
.
name
);
}
public
static
bool
LoadInitStage
(
string
name
,
bool
local
=
false
,
bool
restore_session
=
true
,
UnityEngine
.
GameObject
gameObject
=
null
)
public
static
bool
LoadInitStage
(
string
name
,
bool
local
=
false
,
bool
restore_session
=
true
,
GameObject
gameObject
=
null
)
{
if
(!
ContainsKey
(
name
,
local
))
return
false
;
...
...
@@ -247,12 +248,12 @@ public static bool LoadInitStage(string name, bool local = false, bool restore_s
return
true
;
}
public
static
bool
LoadInitStage
(
bool
restore_session
,
UnityEngine
.
GameObject
gameObject
=
null
)
public
static
bool
LoadInitStage
(
bool
restore_session
,
GameObject
gameObject
=
null
)
{
if
(
current_name
==
null
||
current_name
.
Length
==
0
||
!
stage
.
DeepLoad
())
return
false
;
gameObject
??=
new
UnityEngine
.
GameObject
();
gameObject
??=
new
GameObject
();
if
(
restore_session
)
{
...
...
This diff is collapsed.
Click to expand it.
UserSettings/EditorUserSettings.asset
+
3
−
3
View file @
ce90d4fe
...
...
@@ -27,13 +27,13 @@ EditorUserSettings:
value
:
22424703114646680e0b0227036c721518021d39631b32313f3d2e30f0e53136acf238e0f323
flags
:
0
RecentlyUsedScenePath-7
:
value
:
22424703114646680e0b0227036c6b150503570b222c340f1
e3d1c21f6ae2136ebf32f
value
:
22424703114646680e0b0227036c6b150503570b222c340f1
93b1836d5ef2634e6a923e7ee2e26
flags
:
0
RecentlyUsedScenePath-8
:
value
:
22424703114646680e0b0227036c
6b150503570b222c340f193b1836d5ef2634e6a923e7ee2e26
value
:
22424703114646680e0b0227036c
721518021d39630527392304183df7e57a2decee22f0
flags
:
0
RecentlyUsedScenePath-9
:
value
:
22424703114646680e0b0227036c
721518021d39630527392304183df7e57a2decee2
2f
0
value
:
22424703114646680e0b0227036c
6b150503570b222c340f1e3d1c21f6ae2136ebf3
2f
flags
:
0
vcSharedLogLevel
:
value
:
0d5e400f0650
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment