// Use this for initialization void Start() { ingameManager = InGamemanager.Instance; jsonFileWriter = JsonFileWriter.Instance; //if (PlayerPrefs.GetInt("NewGame") == 1) //{ // jsonFile = Resources.Load<TextAsset>("JsonDB/GUILD_TABLE") as TextAsset; // loadData = JsonMapper.ToObject(jsonFile.text); // jsonFile = Resources.Load<TextAsset>("JsonDB/PARTY_TABLE") as TextAsset; // loadPartyData = JsonMapper.ToObject(jsonFile.text); //} // //else //{ // jsonFile = Resources.Load<TextAsset>("JsonDB/GUILD_TABLE") as TextAsset; // loadData = JsonMapper.ToObject(jsonFile.text); // jsonFile = Resources.Load<TextAsset>("JsonDB/PARTY_TABLE") as TextAsset; // loadPartyData = JsonMapper.ToObject(jsonFile.text); //} loadData = jsonFileWriter.SerializeData("GUILD_TABLE"); loadPartyData = jsonFileWriter.SerializeData("PARTY_TABLE"); guild_id = PlayerPrefs.GetString("current_guild_id"); LoadFrontData(); name.text = guild_front_name; front.text = guild_front_text[1]; Char_Face_init(); }
private void Start() { ingamemanager = InGamemanager.Instance; jsonFileWriter = JsonFileWriter.Instance; loadData = jsonFileWriter.SerializeData("NPC_TABLE"); LoadData(); }
public GameObject current_clicked_chr; //현재 선택된(스킬) 캐릭터 // Use this for initialization void Start() { battleManager = BattleManager.Instance; jsonFileWriter = JsonFileWriter.Instance; loadSkillData = jsonFileWriter.SerializeData("SKILL_LIST"); is_click = false; projectile_hit = false; }
// Use this for initialization void Start() { ingameManager = InGamemanager.Instance; jsonFileWriter = JsonFileWriter.Instance; loadPartyData = jsonFileWriter.SerializeData("PARTY_TABLE"); Getparty(); Party_Face_init(); }
// Use this for initialization void Start() { resultWindow.SetActive(false); ingameManager = InGamemanager.Instance; skillmanager = SkillManager.Instance; jsonFileWriter = JsonFileWriter.Instance; group_id = PlayerPrefs.GetString("Current_group_id"); loadMonsterData = jsonFileWriter.SerializeData("MONSTER_GROUP_TABLE"); loadPartyData = jsonFileWriter.SerializeData("PARTY_TABLE"); Getparty(); LoadMonsterData(group_id); enemys = new GameObject[monster_cnt]; partys = new GameObject[partyid.Count + 1]; backGround.GetComponent <SpriteRenderer>().sprite = Resources.Load <Sprite>("전투배경/" + stage_background); player.transform.position = partypos[0].position; partys[0] = player; SpawnMonster(); SpawnParty(); }
// Use this for initialization void Start() { ingameManager = InGamemanager.Instance; jsonFileWriter = JsonFileWriter.Instance; textbox = ingameManager.textBox; textbox_t = ingameManager.textBox.GetComponentInChildren <Text>(); loadData = jsonFileWriter.SerializeData("TILEMAP_EVENT"); LoadData(); if (trigger == "0") { this.gameObject.GetComponent <SpriteRenderer>().sprite = box[0]; } else if (trigger == "1") { this.gameObject.GetComponent <SpriteRenderer>().sprite = box[1]; } else if (trigger == "2") { this.gameObject.GetComponent <SpriteRenderer>().enabled = false; } }