@@ -91,12 +91,10 @@ public class EventManager : MonoBehaviour
{
if(!scriptEnumerator.MoveNext())
{
Debug.Log(GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).status+" "+GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).IsFirstVisible());
eventCore.Complete();
Debug.Log(GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).status+" "+GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).IsFirstVisible());
Debug.Log(GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).status+" "+GameManager.instance.game.allEventsList.Find(e=>e.eventName.Equals("농사 이벤트 2")).IsFirstVisible());
//sd.GetChild(2).GetComponent<SpriteRenderer>().sprite = turnsLeftSprites[e.givenMaxTurn - 1]; // sprite array index is 0-based, but starts with sprite of 1, so -1 is needed.
@@ -130,19 +125,14 @@ public class GameManager : MonoBehaviour
else
sd.gameObject.SetActive(false);
if(e.givenMaxTurn<0)
if(e.givenMaxMonth<0)
continue;
if(e.turnsLeft>=1)
if(e.monthsLeft>=1)
{
//sd.GetChild(2).GetComponent<SpriteRenderer>().sprite = turnsLeftSprites[e.turnsLeft - 1]; // sprite array index is 0-based, but starts with sprite of 1, so -1 is needed.