// Use this for initialization void Start() { // FriendDiceRequest Panel GameObject tempFriendDiceR = GameObject.Instantiate(friendDiceRequestPrefab, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity) as GameObject; tempFriendDiceR.transform.parent = this.transform; tempFriendDiceR.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f); ((UIPanel)tempFriendDiceR.GetComponent("UIPanel")).depth = 1; friend_dice_request = (FriendDiceRequest)tempFriendDiceR.GetComponent("FriendDiceRequest"); friend_dice_request.gameObject.SetActive(false); // ShopGoldBar Panel shop_goldbar = GameObject.Instantiate(shop_goldbar_prefab, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity) as GameObject; shop_goldbar.transform.parent = this.transform; shop_goldbar.transform.localScale = new Vector3(1.0f, 1.0f, 1.0f); ((UIPanel)shop_goldbar.GetComponent("UIPanel")).depth = 2; shop_goldbar.SetActive(false); instance = this; changeIsMain(true); //isMain = true; if (Localization.instance != null) { // Localization 객체에게 언어를 바꾸라고 합니다. Debug.Log("Locale is " + CMainData.Locale); if (CMainData.Locale.Contains("ko")) { Localization.instance.currentLanguage = "korea"; } else if (CMainData.Locale.Contains("ja")) { Localization.instance.currentLanguage = "japan"; } else { Localization.instance.currentLanguage = "english"; } } if (musicButton != null) { if (CMainData.Music) { musicButton.spriteName = "MS_menu_btn_music_on"; // musicButton.mainTexture = main_music_on; } else { musicButton.spriteName = "MS_menu_btn_music_off"; //musicButton.mainTexture = main_pause; } } if (soundButton != null) { if (CMainData.Sound) { soundButton.spriteName = "MS_menu_btn_sound_on"; //soundButton.mainTexture = main_sound_on; } else { soundButton.spriteName = "MS_menu_btn_sound_off"; //soundButton.mainTexture = main_sound_off; } } if (!CMainData.Tutorial) { TutorialOpen(); } else { if (first_loading) { Debug.Log("FirstLoading"); changeIsMain(false); //isMain = false; gamelogin_help.SetActive(true); first_loading = false; } } FaceBook.LoadFriendImages(); //tutorial.SetActive(false); }