// Start is called before the first frame update void Start() { int isNew = PlayerPrefs.GetInt("isNew", 1); //새로운거인지 확인 Scrollbar_tuto.gameObject.SetActive(false); if (isNew == 1) //첫 시작이면 퀘스트 뜨게 함 { UI.SetActive(true); //효민 - 빚쟁이 텍스트 GameObject.Find("quest_Data").GetComponent <quest_Data>().newStart(); PlayerPrefs.SetInt("isNew", 0); } /* * for(int i=0; i<twinkles.transform.childCount; i++) * { * twinkles.transform.GetChild(i).GetComponent<Animation>().Play(); * }*/ activation_cost = 50000; //양식장 확장 비용 sending_int = 0; sending_str = "0"; sending_limit = 100000; sending_amount_repay.GetComponent <Text>().text = sending_str; day.GetComponent <Text>().text = Haenyeo.day.ToString(); money.GetComponent <Text>().text = Haenyeo.money.ToString(); debt.GetComponent <Text>().text = Haenyeo.debt.ToString(); for (int i = 0; i < sea_item.Length; i++) { sea_item[i].transform.GetChild(2).GetComponent <Text>().text = sea_item[i].GetComponent <sea_item>().item_name_kor; sea_item[i].transform.GetChild(3).GetComponent <Text>().text = sea_item[i].GetComponent <sea_item>().farm_price.ToString(); sea_item[i].transform.GetChild(4).GetComponent <Text>().text = sea_item[i].GetComponent <sea_item>().farm_time.ToString(); } UI_manager.AllUIoff(); if (Haenyeo.todayState == Haenyeo.TodayState.night) { Color color = new Vector4(1, 1, 1, 1); farm_night.color = color; farm_night.gameObject.SetActive(true); Switch.sprite = Resources.Load <Sprite>("switch_night"); } else { Switch.sprite = Resources.Load <Sprite>("switch_day"); farm_night.gameObject.SetActive(false); } PlayerPrefs.SetInt("isNew", 0); //새로운게 아니라고 표시 }
public void quest_ui_close() { UI_manager.AllUIoff(); }