Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igem-quantifly
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
igem-quantifly
Commits
26b8a13e
Unverified
Commit
26b8a13e
authored
Oct 29, 2016
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scenes: Allow any landscape orientation
parent
3b3ff1e5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
GameController.cs
Assets/Scripts/GameController.cs
+3
-1
GameOver.cs
Assets/Scripts/GameOver.cs
+4
-1
HighScores.cs
Assets/Scripts/HighScores.cs
+3
-0
Menu.cs
Assets/Scripts/Menu.cs
+3
-1
No files found.
Assets/Scripts/GameController.cs
View file @
26b8a13e
...
@@ -24,7 +24,9 @@ namespace Assets.Scripts
...
@@ -24,7 +24,9 @@ namespace Assets.Scripts
{
{
size
=
BG
.
GetComponent
<
SpriteRenderer
>().
sprite
.
bounds
.
size
;
size
=
BG
.
GetComponent
<
SpriteRenderer
>().
sprite
.
bounds
.
size
;
tra
=
BG
.
GetComponent
<
Transform
>();
tra
=
BG
.
GetComponent
<
Transform
>();
Screen
.
orientation
=
ScreenOrientation
.
LandscapeLeft
;
Screen
.
autorotateToLandscapeRight
=
true
;
Screen
.
autorotateToLandscapeLeft
=
true
;
Screen
.
orientation
=
ScreenOrientation
.
AutoRotation
;
}
}
void
Update
()
void
Update
()
...
...
Assets/Scripts/GameOver.cs
View file @
26b8a13e
...
@@ -19,7 +19,10 @@ public class GameOver : MonoBehaviour
...
@@ -19,7 +19,10 @@ public class GameOver : MonoBehaviour
public
Button
buttonPlay
;
public
Button
buttonPlay
;
void
Start
()
void
Start
()
{
{
Screen
.
autorotateToLandscapeRight
=
true
;
Screen
.
autorotateToLandscapeLeft
=
true
;
Screen
.
orientation
=
ScreenOrientation
.
AutoRotation
;
}
}
void
Update
()
void
Update
()
...
...
Assets/Scripts/HighScores.cs
View file @
26b8a13e
...
@@ -16,6 +16,9 @@ public class HighScores : MonoBehaviour {
...
@@ -16,6 +16,9 @@ public class HighScores : MonoBehaviour {
// Use this for initialization
// Use this for initialization
void
Start
()
{
void
Start
()
{
Screen
.
autorotateToLandscapeRight
=
true
;
Screen
.
autorotateToLandscapeLeft
=
true
;
Screen
.
orientation
=
ScreenOrientation
.
AutoRotation
;
ScoreText
.
text
=
""
;
ScoreText
.
text
=
""
;
Server
=
gameObject
.
GetComponent
(
typeof
(
Server
))
as
Server
;
Server
=
gameObject
.
GetComponent
(
typeof
(
Server
))
as
Server
;
}
}
...
...
Assets/Scripts/Menu.cs
View file @
26b8a13e
...
@@ -7,7 +7,9 @@ public class Menu : MonoBehaviour {
...
@@ -7,7 +7,9 @@ public class Menu : MonoBehaviour {
// Use this for initialization
// Use this for initialization
void
Start
()
{
void
Start
()
{
Screen
.
autorotateToLandscapeRight
=
true
;
Screen
.
autorotateToLandscapeLeft
=
true
;
Screen
.
orientation
=
ScreenOrientation
.
AutoRotation
;
}
}
// Update is called once per frame
// Update is called once per frame
...
...
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