Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
bb075cae
Commit
bb075cae
authored
Jul 24, 2023
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5537eda1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
Native.cs
Assets/scripts/Views/maingame/Native.cs
+3
-5
ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+2
-2
No files found.
Assets/scripts/Views/maingame/Native.cs
View file @
bb075cae
...
@@ -13,7 +13,7 @@ public class Native : MonoBehaviour
...
@@ -13,7 +13,7 @@ public class Native : MonoBehaviour
void
Start
()
void
Start
()
{
{
text
.
text
=
"test"
;
//
text.text = "test";
showHostMainWindow
();
showHostMainWindow
();
Debug
.
Log
(
"UnityStart"
);
Debug
.
Log
(
"UnityStart"
);
}
}
...
@@ -43,12 +43,10 @@ public class Native : MonoBehaviour
...
@@ -43,12 +43,10 @@ public class Native : MonoBehaviour
#endif
#endif
}
}
void
onNativeMessage
(
string
json
)
void
onNativeMessage
(
string
json
)
{
Debug
.
Log
(
"Android调用该方法"
+
json
);
}
void
loadGameScene
()
{
{
SceneManager
.
LoadScene
(
"Scenes/gameScene"
);
SceneManager
.
LoadScene
(
"Scenes/gameScene"
);
Debug
.
Log
(
"Android调用该方法"
+
json
);
}
}
}
}
ProjectSettings/ProjectSettings.asset
View file @
bb075cae
...
@@ -62,9 +62,9 @@ PlayerSettings:
...
@@ -62,9 +62,9 @@ PlayerSettings:
allowedAutorotateToLandscapeRight
:
1
allowedAutorotateToLandscapeRight
:
1
allowedAutorotateToLandscapeLeft
:
1
allowedAutorotateToLandscapeLeft
:
1
useOSAutorotation
:
1
useOSAutorotation
:
1
use32BitDisplayBuffer
:
1
use32BitDisplayBuffer
:
0
preserveFramebufferAlpha
:
0
preserveFramebufferAlpha
:
0
disableDepthAndStencilBuffers
:
1
disableDepthAndStencilBuffers
:
0
androidStartInFullscreen
:
1
androidStartInFullscreen
:
1
androidRenderOutsideSafeArea
:
1
androidRenderOutsideSafeArea
:
1
androidUseSwappy
:
1
androidUseSwappy
:
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment