Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
another world in jucheland
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
nippon culture research center
another world in jucheland
Commits
0db6f2f1
Commit
0db6f2f1
authored
Mar 09, 2019
by
Chae Ho Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #110
parent
baab9909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
EventManager.cs
ISEKAI/Assets/ISEKAI_VIEW/EventManager.cs
+5
-5
No files found.
ISEKAI/Assets/ISEKAI_VIEW/EventManager.cs
View file @
0db6f2f1
...
@@ -519,7 +519,7 @@ public class EventManager : MonoBehaviour
...
@@ -519,7 +519,7 @@ public class EventManager : MonoBehaviour
var
tmpBackgroundRenderer
=
spriteBackgroundTemp
.
GetComponent
<
SpriteRenderer
>();
var
tmpBackgroundRenderer
=
spriteBackgroundTemp
.
GetComponent
<
SpriteRenderer
>();
if
(
tmpBackgroundRenderer
==
null
)
return
;
if
(
tmpBackgroundRenderer
==
null
)
return
;
if
(
mainBackgroundRenderer
.
sprite
==
null
||
mainBackgroundRenderer
.
sprite
.
Equals
(
background
)
)
if
(
mainBackgroundRenderer
.
sprite
==
null
)
{
{
// 그냥 페이드 인
// 그냥 페이드 인
spriteBackgroundTemp
.
SetActive
(
false
);
spriteBackgroundTemp
.
SetActive
(
false
);
...
@@ -529,7 +529,7 @@ public class EventManager : MonoBehaviour
...
@@ -529,7 +529,7 @@ public class EventManager : MonoBehaviour
else
else
{
{
// Dissolve
// Dissolve
spriteBackground
.
transform
.
localScale
=
new
Vector3
(
1
,
1
,
1
);
//
spriteBackground.transform.localScale = new Vector3(1, 1, 1);
var
width
=
mainBackgroundRenderer
.
sprite
.
bounds
.
size
.
x
;
var
width
=
mainBackgroundRenderer
.
sprite
.
bounds
.
size
.
x
;
var
height
=
mainBackgroundRenderer
.
sprite
.
bounds
.
size
.
y
;
var
height
=
mainBackgroundRenderer
.
sprite
.
bounds
.
size
.
y
;
...
@@ -537,8 +537,8 @@ public class EventManager : MonoBehaviour
...
@@ -537,8 +537,8 @@ public class EventManager : MonoBehaviour
var
worldScreenHeight
=
Camera
.
main
.
orthographicSize
*
2.0
;
var
worldScreenHeight
=
Camera
.
main
.
orthographicSize
*
2.0
;
var
worldScreenWidth
=
worldScreenHeight
/
Screen
.
height
*
Screen
.
width
;
var
worldScreenWidth
=
worldScreenHeight
/
Screen
.
height
*
Screen
.
width
;
spriteBackground
.
transform
.
localScale
=
new
Vector3
((
float
)
worldScreenWidth
/
width
,
(
float
)
worldScreenHeight
/
height
,
1
);
//
spriteBackground.transform.localScale = new Vector3((float)worldScreenWidth / width, (float)worldScreenHeight / height, 1);
//
spriteBackgroundTemp.transform.localScale = new Vector3((float)worldScreenWidth / width, (float)worldScreenHeight / height, 1);
spriteBackgroundTemp
.
transform
.
localScale
=
new
Vector3
((
float
)
worldScreenWidth
/
width
,
(
float
)
worldScreenHeight
/
height
,
1
);
spriteBackground
.
SetActive
(
true
);
spriteBackground
.
SetActive
(
true
);
spriteBackgroundTemp
.
SetActive
(
true
);
spriteBackgroundTemp
.
SetActive
(
true
);
...
@@ -625,7 +625,7 @@ public class EventManager : MonoBehaviour
...
@@ -625,7 +625,7 @@ public class EventManager : MonoBehaviour
mainBackgroundRenderer
.
sprite
=
background
;
mainBackgroundRenderer
.
sprite
=
background
;
mainBackgroundRenderer
.
color
=
mainBackgroundColor
;
mainBackgroundRenderer
.
color
=
mainBackgroundColor
;
spriteBackground
.
transform
.
localScale
=
new
Vector3
((
float
)
tmpWorldScreenWidth
/
tmpWidth
,
(
float
)
tmpWorldScreenHeight
/
tmpHeight
,
1
);
isNextButtonActive
=
true
;
isNextButtonActive
=
true
;
ExecuteOneScript
();
ExecuteOneScript
();
...
...
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