Commit 0db6f2f1 authored by Chae Ho Shin's avatar Chae Ho Shin

fix #110

parent baab9909
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment