void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { ItemIconCtrl.ResetThis(); UIImageChanger.Release(); MainManuSceneMove.GotoScene("MainManu"); } }
IEnumerator MoveScene() { for (int i = 0; i < 2; i++) { TempMenu[i].StopAllCoroutines(); } StopCoroutine("ItemSelect"); yield return(new WaitForSeconds(1f)); //StopAllCoroutines(); for (int i = 0; i < 2; i++) { GameData.ins.EquipmentCode[i] = ItemCode[i]; GameData.ins.PotionCode[i] = ItemCode[i + 2]; } ItemIconCtrl.ResetThis(); UIImageChanger.Release(); SceneManager.LoadScene("Main");//씬변경 }