Inheritance: MonoBehaviour
 // Use this for initialization
 void Start()
 {
     mainprocess = GameObject.Find("Main Process").GetComponent<Main_Process>();
     audios = GetComponent<AudioSource>();
     dialog.Init();
     gameObject.SetActive(false);
 }
 void Start()
 {
     mainprocess = FindObjectOfType<Main_Process>();
     allSkills.Add(gameObject.AddComponent<HealthRegenSkill>());
     allSkills.Add(gameObject.AddComponent<Skill_TimeStop>());
     //allSkills.Add(gameObject.AddComponent<Skill_BoostV2>());
     allSkills.Add(gameObject.AddComponent<Skill_BulkUp>());
     allSkills.Add(gameObject.AddComponent<IgniteSkill>());
     allSkills.Add(gameObject.AddComponent<FireballSkill>());
     allSkills.Add(gameObject.AddComponent<FireblastSkill>());
     allSkills.Add(gameObject.AddComponent<ShockSkill>());
 }
    void Start()
    {
        /*if(Application.platform!=RuntimePlatform.WindowsEditor)
        {
            if (Globe.Map_Load_id == 1)
                Application.LoadLevel("mainLevel");
            else
                Application.LoadLevel("mainTown");
            return;
        }*/
        //Globe.Map_Load_id = 1;
        //Debug.Log("Teleport to Level: " + Globe.Map_Load_id);
        //link the UI
        GameObject GOResult;
        GOResult = GameObject.Find("TransferUI");
        Map_Transfer_UI_Control_Script = GOResult.GetComponent<Map_Transfer_UI_Control>();
        GOResult = GameObject.Find("Main Process");
        audio = GOResult.GetComponent<AudioSource>();
        mapdb=GOResult.GetComponentInChildren<Map_Transfer_DB>();
        mp = GOResult.GetComponent<Main_Process>();
        if(GOResult)
        {
            if(Application.platform!=RuntimePlatform.WindowsEditor)
                if (GOResult.GetComponent<SaveAndLoad>()!=null)
                    GOResult.GetComponent<SaveAndLoad>().SaveData();
            //play the bgm
            if (mapdb.mapinfo[Globe.Map_Load_id].have_bgm && Globe.Map_Load_id!=1)
            {
                audio.clip = mapdb.mapinfo[Globe.Map_Load_id].bgm;
                audio.Play();
                audio.volume = 1;
            }
            else
            {
                mp.Start_Battle();
            }

        }
        counter++;
        //start to load scene
        StartCoroutine(loadScene());
    }
    // Use this for initialization
    void Start()
    {
        rnd = new System.Random(System.Guid.NewGuid().GetHashCode());
        Camera camera = Camera.main;
        cameraFollow = camera.GetComponent<CameraFollow>();
        mainprocess = FindObjectOfType<Main_Process>();

        InstanceID = CreateStart.AreaID[CreateStart.roomCount-1];
        //Debug.Log("InstanceID: " + InstanceID + ", " + (CreateStart.roomCount-1));

        room = FindObjectOfType<CreateStart>().GetComponent<CreateStart>();

        if (CreateStart.roomCount != 1) //never create a mob in the first room
        {
            room.MakeMob(CreateStart.roomCount);
            room.MakeObjects(CreateStart.roomCount);
        }

        if (CreateStart.squadSize == 0)
            E_Dead = true;

        end = GameObject.Find("Main Process").GetComponent<Main_Process>();
    }
 // Use this for initialization
 void Start()
 {
     Text[] Result1;
     Result1 = GetComponentsInChildren<Text>();
     foreach (Text t in Result1)
     {
         if(t.name=="P_S_N1")
         {
             shop_skill[1].skillname = t;
             continue;
         }
         if (t.name == "P_S_N2")
         {
             shop_skill[2].skillname = t;
             continue;
         }
         if (t.name == "P_S_N3")
         {
             shop_skill[3].skillname = t;
             continue;
         }
         if (t.name == "P_S_N4")
         {
             shop_skill[4].skillname = t;
             continue;
         }
         if (t.name == "P_S_N5")
         {
             shop_skill[5].skillname = t;
             continue;
         }
         if (t.name == "P_S_N6")
         {
             shop_skill[6].skillname = t;
             continue;
         }
         if (t.name == "P_S_N7")
         {
             shop_skill[7].skillname = t;
             continue;
         }
         if (t.name == "P_S_N8")
         {
             shop_skill[8].skillname = t;
             continue;
         }
         if (t.name == "P_S_N9")
         {
             shop_skill[9].skillname = t;
             continue;
         }
         if (t.name == "P_S_N10")
         {
             shop_skill[10].skillname = t;
             continue;
         }
         if (t.name == "P_S_N11")
         {
             shop_skill[11].skillname = t;
             continue;
         }
         if (t.name == "P_S_N12")
         {
             shop_skill[12].skillname = t;
             continue;
         }
         if (t.name == "P_S_N13")
         {
             shop_skill[13].skillname = t;
             continue;
         }
         if (t.name == "P_S_N14")
         {
             shop_skill[14].skillname = t;
             continue;
         }
         if (t.name == "P_S_P")
         {
             Point = t;
             continue;
         }
         if (t.name == "P_S_EF")
         {
             Skill_effect = t;
             continue;
         }
         if (t.name == "P_S_SI")
         {
             Skill_info = t;
             continue;
         }
         if(t.name=="P_S_tips")
         {
             Tips = t;
             continue;
         }
     }
     Image[] Result2;
     Result2 = GetComponentsInChildren<Image>();
     foreach(Image i in Result2)
     {
         if(i.name=="P_S_I1")
         {
             shop_skill[1].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I2")
         {
             shop_skill[2].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I3")
         {
             shop_skill[3].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I4")
         {
             shop_skill[4].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I5")
         {
             shop_skill[5].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I6")
         {
             shop_skill[6].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I7")
         {
             shop_skill[7].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I8")
         {
             shop_skill[8].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I9")
         {
             shop_skill[9].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I10")
         {
             shop_skill[10].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I11")
         {
             shop_skill[11].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I12")
         {
             shop_skill[12].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I13")
         {
             shop_skill[13].skillicon = i;
             continue;
         }
         if (i.name == "P_S_I14")
         {
             shop_skill[14].skillicon = i;
             continue;
         }
         if (i.name == "P_S_Current")
         {
             Current = i;
             continue;
         }
     }
     MainProcess = GameObject.Find("Main Process").GetComponent<Main_Process>();
     //Change();
     current_id = 1;
     player_id = 0;
     gameObject.SetActive(false);
 }
    // Use this for initialization
    void Start()
    {
        Text[] finds1;
        Image[] finds2;
        finds1 = GetComponentsInChildren<Text>();
        foreach (Text t in finds1)
        {
            if (t.name == "ATK")
            {
                ATK = t;
                continue;
            }
            if (t.name == "DEF")
            {
                DEF = t;
                continue;
            }
            if (t.name == "STA")
            {
                STA = t;
                continue;
            }
            if (t.name == "SPI")
            {
                SPI = t;
                continue;
            }
            if (t.name == "AGI")
            {
                AGI = t;
                continue;
            }
            if (t.name == "BATK")
            {
                BATK = t;
                continue;
            }
            if (t.name == "MATK")
            {
                MATK = t;
                continue;
            }
            if (t.name == "PDEF")
            {
                PDEF = t;
                continue;
            }
            if (t.name == "MDEF")
            {
                MDEF = t;
                continue;
            }
            if (t.name == "CRIR")
            {
                CRIR = t;
                continue;
            }
            if (t.name == "C_HP")
            {
                C_HP = t;
                continue;
            }
            if (t.name == "C_MP")
            {
                C_MP = t;
                continue;
            }
            if (t.name == "C_EXP")
            {
                C_EXP = t;
                continue;
            }
            if (t.name == "C_NEXP")
            {
                C_NEXP = t;
                continue;
            }
            if (t.name == "C_Name")
            {
                C_Name = t;
                continue;
            }
            if (t.name == "C_LV")
            {
                C_LV = t;
                continue;
            }
            if(t.name=="C_PASPoint")
            {
                C_PASP = t;
                continue;
            }

        }
        finds2 = GetComponentsInChildren<Image>();
        foreach (Image i in finds2)
        {
            if (i.name == "C_ICON")
            {
                C_ICON = i;
                continue;
            }
            if (i.name == "C_WEP")
            {
                weapon = i;
                continue;
            }
            if (i.name == "C_AMR")
            {
                amror = i;
                continue;
            }
            if (i.name == "C_ACC")
            {
                accer = i;
                continue;
            }
            if(i.name=="CM_Current")
            {
                cm_current = i;
                continue;
            }
            if(i.name=="CM_Hover_Upgrade")
            {
                upgrade = i;
                continue;
            }
        }
        main_process = GameObject.Find("Main Process").GetComponent<Main_Process>();
        CI = main_process.GetComponentInChildren<Character_Class_Info>();
        gem_system = GetComponentInChildren<UI_GEM_FullControl>();
        gem_system.mainp = main_process;
        select_current = 0;
        gem_selecting = false;
        passive_selecting = false;
        playerid = 0;
    }
 void Start()
 {
     MC = GameObject.Find("Main Process").GetComponent<Main_Process>();
 }
        private void matchingToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Main_Process mp = new Main_Process();

            mp.Show();
        }
 // Use this for initialization
 void Start()
 {
     Text[] Result1;
     Result1 = GetComponentsInChildren<Text>();
     foreach (Text t in Result1)
     {
         if (t.name == "A_M_N1")
         {
             ability[1].skillname = t;
             continue;
         }
         if (t.name == "A_M_N2")
         {
             ability[2].skillname = t;
             continue;
         }
         if (t.name == "A_M_N3")
         {
             ability[3].skillname = t;
             continue;
         }
         if (t.name == "A_M_N4")
         {
             ability[4].skillname = t;
             continue;
         }
         if (t.name == "A_M_N5")
         {
             ability[5].skillname = t;
             continue;
         }
         if (t.name == "A_M_N6")
         {
             ability[6].skillname = t;
             continue;
         }
         if (t.name == "A_M_N7")
         {
             ability[7].skillname = t;
             continue;
         }
         if (t.name == "A_M_N8")
         {
             ability[8].skillname = t;
             continue;
         }
         if (t.name == "A_M_N9")
         {
             ability[9].skillname = t;
             continue;
         }
         if (t.name == "A_M_N10")
         {
             ability[10].skillname = t;
             continue;
         }
         if (t.name == "A_M_N11")
         {
             ability[11].skillname = t;
             continue;
         }
         if (t.name == "A_M_N12")
         {
             ability[12].skillname = t;
             continue;
         }
         if (t.name == "A_M_N13")
         {
             ability[13].skillname = t;
             continue;
         }
         if (t.name == "A_M_N14")
         {
             ability[14].skillname = t;
             continue;
         }
         if (t.name == "A_M_SI")
         {
             Skill_info = t;
             continue;
         }
         if (t.name == "A_M_tips")
         {
             Tips = t;
             continue;
         }
     }
     Image[] Result2;
     Result2 = GetComponentsInChildren<Image>();
     foreach (Image i in Result2)
     {
         if (i.name == "A_M_I1")
         {
             ability[1].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I2")
         {
             ability[2].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I3")
         {
             ability[3].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I4")
         {
             ability[4].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I5")
         {
             ability[5].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I6")
         {
             ability[6].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I7")
         {
             ability[7].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I8")
         {
             ability[8].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I9")
         {
             ability[9].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I10")
         {
             ability[10].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I11")
         {
             ability[11].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I12")
         {
             ability[12].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I13")
         {
             ability[13].skillicon = i;
             continue;
         }
         if (i.name == "A_M_I14")
         {
             ability[14].skillicon = i;
             continue;
         }
         if (i.name == "A_M_Current")
         {
             Current = i;
             continue;
         }
         if (i.name == "A_M_Q1")
         {
             Quick_slot[1] = i;
             continue;
         }
         if (i.name == "A_M_Q2")
         {
             Quick_slot[2] = i;
             continue;
         }
         if (i.name == "A_M_Q3")
         {
             Quick_slot[3] = i;
             continue;
         }
         if (i.name == "A_M_Q4")
         {
             Quick_slot[4] = i;
             continue;
         }
     }
     Skill_video = GetComponentInChildren<RawImage>();
     MainProcess = GameObject.Find("Main Process").GetComponent<Main_Process>();
     CCIS = MainProcess.GetComponentInChildren<Character_Class_Info>();
     SI = MainProcess.GetComponentInChildren<Skill_info>();
     //Change();
 }
 void Start()
 {
     mainprocess = FindObjectOfType<Main_Process>();
 }
 // Use this for initialization
 void Start()
 {
     audio = GetComponent<AudioSource>();
     mp = GetComponentInParent<Other_Windows_FullControl>().Main_Process.GetComponent<Main_Process>();
     gameObject.SetActive(false);
 }
 // Use this for initialization
 void Start()
 {
     main_process = GameObject.Find("Main Process").GetComponent<Main_Process>();
     ci = main_process.gameObject.GetComponentInChildren<Character_Class_Info>();
     gameObject.SetActive(false);
 }
 public void Calculate(int player_mode)
 {
     stop_time = M_Timer.current_time;
     death = M_DB.death;
     get_gold = M_DB.get_gold;
     limit_time = M_T_DB.mapinfo[Globe.Map_Load_id].limit_time;
     limit_death = M_T_DB.mapinfo[Globe.Map_Load_id].limit_death;
     limit_gold = M_T_DB.mapinfo[Globe.Map_Load_id].limit_gold;
     if(player_mode==2)
     {
         limit_time = (int)(limit_time * 0.75);
         limit_death = (int)(limit_death * 1.5);
         limit_gold = (int)(limit_gold * 1.5);
     }
     int onlimit = 0;
     if(stop_time>limit_time)
     {
         onlimit++;
         M_S_Time.text = "<color=#ff0000ff>" + (stop_time / 60).ToString("D") + ":" + (stop_time % 60).ToString("D2") + "/" + (limit_time / 60).ToString("D") + ":" + (limit_time % 60).ToString("D2") + "</color>";
     }
     else
     {
         M_S_Time.text = "<color=#00ff00ff>" + (stop_time / 60).ToString("D") + ":" + (stop_time % 60).ToString("D2") + "/" + (limit_time / 60).ToString("D") + ":" + (limit_time % 60).ToString("D2") + "</color>";
     }
     if(death>limit_death)
     {
         M_S_Death.text = "<color=#ff0000ff>" + death.ToString() + "</color>";
         onlimit++;
     }
     else
     {
         M_S_Death.text = "<color=#00ff00ff>" + death.ToString() + "</color>";
     }
     if(get_gold<limit_gold)
     {
         M_S_GetGold.text ="<color=#ff0000ff>" + get_gold.ToString() + "</color>";
         onlimit++;
     }
     else
     {
         M_S_GetGold.text = "<color=#00ff00ff>" + get_gold.ToString() + "</color>";
     }
     Rank_Control_I.sprite = Rank_Control_L.Rank_Image[onlimit];
     M_S_RDEXP.text = M_T_DB.mapinfo[Globe.Map_Load_id].Reward_EXP[onlimit].ToString();
     mps = GetComponentInParent<Other_Windows_FullControl>().Main_Process.GetComponent<Main_Process>();
     //Add Exp
     if (player_mode == 1)
         mps.GetPlayerExperience().AddExperience(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_EXP[onlimit]);
     else
     {
         mps.GetPlayerExperience(0).AddExperience(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_EXP[onlimit]);
         mps.GetPlayerExperience(1).AddExperience(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_EXP[onlimit]);
     }
     M_S_RDGold.text = M_T_DB.mapinfo[Globe.Map_Load_id].Reward_Gold[onlimit].ToString();
     //Add Gold
     if (player_mode == 1)
         mps.GetPlayerCoinManager().addCoins(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_Gold[onlimit]);
     else
     {
         mps.GetPlayerCoinManager(0).addCoins(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_Gold[onlimit]);
         mps.GetPlayerCoinManager(1).addCoins(M_T_DB.mapinfo[Globe.Map_Load_id].Reward_Gold[onlimit]);
     }
 }
 // Use this for initialization
 void Start()
 {
     Text[] Result1;
     Result1 = GetComponentsInChildren<Text>();
     foreach (Text t in Result1)
     {
         if(t.name=="S_H_N1")
         {
             shop_skill[1].skillname = t;
             continue;
         }
         if (t.name == "S_H_N2")
         {
             shop_skill[2].skillname = t;
             continue;
         }
         if (t.name == "S_H_N3")
         {
             shop_skill[3].skillname = t;
             continue;
         }
         if (t.name == "S_H_N4")
         {
             shop_skill[4].skillname = t;
             continue;
         }
         if (t.name == "S_H_N5")
         {
             shop_skill[5].skillname = t;
             continue;
         }
         if (t.name == "S_H_N6")
         {
             shop_skill[6].skillname = t;
             continue;
         }
         if (t.name == "S_H_N7")
         {
             shop_skill[7].skillname = t;
             continue;
         }
         if (t.name == "S_H_N8")
         {
             shop_skill[8].skillname = t;
             continue;
         }
         if (t.name == "S_H_N9")
         {
             shop_skill[9].skillname = t;
             continue;
         }
         if (t.name == "S_H_N10")
         {
             shop_skill[10].skillname = t;
             continue;
         }
         if (t.name == "S_H_N11")
         {
             shop_skill[11].skillname = t;
             continue;
         }
         if (t.name == "S_H_N12")
         {
             shop_skill[12].skillname = t;
             continue;
         }
         if (t.name == "S_H_N13")
         {
             shop_skill[13].skillname = t;
             continue;
         }
         if (t.name == "S_H_N14")
         {
             shop_skill[14].skillname = t;
             continue;
         }
         if (t.name == "S_H_G")
         {
             Gold = t;
             continue;
         }
         if (t.name == "S_H_C")
         {
             Classname = t;
             continue;
         }
         if (t.name == "S_H_SI")
         {
             Skill_info = t;
             continue;
         }
         if(t.name=="S_H_tips")
         {
             Tips = t;
             continue;
         }
     }
     Image[] Result2;
     Result2 = GetComponentsInChildren<Image>();
     foreach(Image i in Result2)
     {
         if(i.name=="S_H_I1")
         {
             shop_skill[1].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I2")
         {
             shop_skill[2].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I3")
         {
             shop_skill[3].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I4")
         {
             shop_skill[4].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I5")
         {
             shop_skill[5].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I6")
         {
             shop_skill[6].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I7")
         {
             shop_skill[7].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I8")
         {
             shop_skill[8].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I9")
         {
             shop_skill[9].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I10")
         {
             shop_skill[10].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I11")
         {
             shop_skill[11].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I12")
         {
             shop_skill[12].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I13")
         {
             shop_skill[13].skillicon = i;
             continue;
         }
         if (i.name == "S_H_I14")
         {
             shop_skill[14].skillicon = i;
             continue;
         }
         if (i.name == "S_H_Current")
         {
             Current = i;
             continue;
         }
     }
     Skill_video = GetComponentInChildren<RawImage>();
     MainProcess = GameObject.Find("Main Process").GetComponent<Main_Process>();
     CCIS= MainProcess.GetComponentInChildren<Character_Class_Info>();
     si = MainProcess.GetComponentInChildren<Skill_info>();
     //Change();
     gameObject.SetActive(false);
 }
    public bool init()
    {
        Text[] finds1;
        Image[] finds2;
        if(One_player_per_client==true)
        {
            TPM.SetActive(false);
            OPM.SetActive(true);
            finds1 = OPM.GetComponentsInChildren<Text>();
            foreach (Text t in finds1)
            {
                //Debug.Log(t.name);
                if (t.name == "HP Value")
                {
                    //Debug .Log("HP Value Found!");
                    HP[0] = t;
                    continue;
                }
                if (t.name == "MP Value")
                {
                    //Debug .Log("MP Value Found!");
                    MP[0] = t;
                    continue;
                }
                if (t.name == "Level")
                {
                    //Debug .Log("Level Found!");
                    LV[0] = t;
                    continue;
                }
                if (t.name == "Class")
                {
                    //Debug .Log("Class Found!");
                    Class[0] = t;
                    continue;
                }

            }
            finds2 = OPM.GetComponentsInChildren<Image>();
            foreach (Image i in finds2)
            {
                if (i.name == "HP")
                {
                    //Debug .Log("HP Value Found!");
                    HP_Bar[0] = i;
                    continue;
                }
                if (i.name == "MP")
                {
                    //Debug .Log("HP Value Found!");
                    MP_Bar[0] = i;
                    continue;
                }
                if (i.name == "EXP")
                {
                    //Debug .Log("HP Value Found!");
                    EXP_Bar[0] = i;
                    continue;
                }
                if (i.name == "SK1_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0,0] = i;
                    continue;
                }
                if (i.name == "SK2_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0,1] = i;
                    continue;
                }
                if (i.name == "SK3_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0,2] = i;
                    continue;
                }
                if (i.name == "SK4_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0,3] = i;
                    continue;
                }
                if (i.name == "IT1")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[0,0] = i;
                    continue;
                }
                if (i.name == "IT2")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[0,1] = i;
                    continue;
                }
                if (i.name == "IT3")
                {
                    //Debug .Log("HP Value Found!");
                    //itemid_icon[0,2] = i;
                    continue;
                }
            }
        }
        else
        {
            OPM.SetActive(false);
            TPM.SetActive(true);
            finds1 = TPM.GetComponentsInChildren<Text>();
            foreach (Text t in finds1)
            {
                if (t.name == "P1HP Value")
                {
                    //Debug .Log("HP Value Found!");
                    HP[0] = t;
                    continue;
                }
                if (t.name == "P2HP Value")
                {
                    //Debug .Log("HP Value Found!");
                    HP[1] = t;
                    continue;
                }
                if (t.name == "P1MP Value")
                {
                    //Debug .Log("MP Value Found!");
                    MP[0] = t;
                    continue;
                }
                if (t.name == "P2MP Value")
                {
                    //Debug .Log("MP Value Found!");
                    MP[1] = t;
                    continue;
                }
                if (t.name == "P1Level")
                {
                    //Debug .Log("Level Found!");
                    LV[0] = t;
                    continue;
                }
                if (t.name == "P2Level")
                {
                    //Debug .Log("Level Found!");
                    LV[1] = t;
                    continue;
                }
                if (t.name == "P1Class")
                {
                    //Debug .Log("Class Found!");
                    Class[0] = t;
                    continue;
                }
                if (t.name == "P2Class")
                {
                    //Debug .Log("Class Found!");
                    Class[1] = t;
                    continue;
                }

            }
            finds2 = TPM.GetComponentsInChildren<Image>();
            foreach (Image i in finds2)
            {
                if (i.name == "P1HP")
                {
                    //Debug .Log("HP Value Found!");
                    HP_Bar[0] = i;
                    continue;
                }
                if (i.name == "P2HP")
                {
                    //Debug .Log("HP Value Found!");
                    HP_Bar[1] = i;
                    continue;
                }
                if (i.name == "P1MP")
                {
                    //Debug .Log("HP Value Found!");
                    MP_Bar[0] = i;
                    continue;
                }
                if (i.name == "P2MP")
                {
                    //Debug .Log("HP Value Found!");
                    MP_Bar[1] = i;
                    continue;
                }
                if (i.name == "P1EXP")
                {
                    //Debug .Log("HP Value Found!");
                    EXP_Bar[0] = i;
                    continue;
                }
                if (i.name == "P2EXP")
                {
                    //Debug .Log("HP Value Found!");
                    EXP_Bar[1] = i;
                    continue;
                }
                if (i.name == "P1SK1_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0, 0] = i;
                    continue;
                }
                if (i.name == "P1SK2_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0, 1] = i;
                    continue;
                }
                if (i.name == "P1SK3_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0, 2] = i;
                    continue;
                }
                if (i.name == "P1SK4_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[0, 3] = i;
                    continue;
                }
                if (i.name == "P1IT1")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[0, 0] = i;
                    continue;
                }
                if (i.name == "P1IT2")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[0, 1] = i;
                    continue;
                }
                if (i.name == "P1IT3")
                {
                    //Debug .Log("HP Value Found!");
                    //itemid_icon[0, 2] = i;
                    continue;
                }
                if (i.name == "P2SK1_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[1, 0] = i;
                    continue;
                }
                if (i.name == "P2SK2_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[1, 1] = i;
                    continue;
                }
                if (i.name == "P2SK3_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[1, 2] = i;
                    continue;
                }
                if (i.name == "P2SK4_BAR")
                {
                    //Debug .Log("HP Value Found!");
                    skillid_icon[1, 3] = i;
                    continue;
                }
                if (i.name == "P2IT1")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[1, 0] = i;
                    continue;
                }
                if (i.name == "P2IT2")
                {
                    //Debug .Log("HP Value Found!");
                    itemid_icon[1, 1] = i;
                    continue;
                }
                if (i.name == "P2IT3")
                {
                    //Debug .Log("HP Value Found!");
                    //itemid_icon[1, 2] = i;
                    continue;
                }
            }
        }
        mps = Main_Process.GetComponent<Main_Process>();
        had_init = true;
        return true;
    }