Exemple #1
0
    }     //홀로그램 조립 신호 받을 때

    void Hologram_Assembling(Puzzle_Part_Hologram.Assembling_Data receive_Data)
    {
        int target_Num = 0;

        foreach (GameObject section in puzzle_Section_pivot)
        {
            if (section.transform.GetChild(0).GetComponent <Puzzle_Part_Hologram>().hologram_Part_ID == receive_Data.assemble_Part_ID)
            {
                break;
            }
            target_Num++;
        } //ID값으로 오브젝트 배열에서 일치하는 오브젝트 찾아내기

        receive_Data.Data_Sender_Obj.GetComponent <Puzzle_Part_Hologram>().Object_Linking(puzzle_Section_pivot[target_Num].transform.GetChild(0).gameObject, receive_Data.linked_Module_Obj.GetComponent <Module_Lable>().ModuleID / 100 % 10);
        //가져다 붙일 홀로그램 + 연결되는 모듈 ID를 보낸다.

        Debug.Log("From Puzzle_Hologram Assembling");
        //Debug.Log("From Puzzle_Hologram linked obj : " + receive_Data.linked_Module_Obj.GetComponent<Module_Lable>().ModuleID);
        Hologram_positioning(target_Num, receive_Data.assemble_Position, receive_Data.assemble_Rotation, receive_Data.linked_Module_Obj);;

        //Debug.Log("From Puzzle_Hologram assembled obj ID : " + receive_Data.assemble_Part_ID + ", name : " + puzzle_Section[receive_Data.assemble_Part_ID]);
    } //홀로그램 조립
Exemple #2
0
 public bool Get_Assemble_Signal(Puzzle_Part_Hologram.Assembling_Data receive_Data)
 {
     Hologram_Assembling(receive_Data);
     return(true);
 }     //홀로그램 조립 신호 받을 때