Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        Middle_item_display_select_Button.enabled = false;

        Message_Box_Button.onClick.AddListener(() => Message_Box_Middle_Animator_For_Coroutine_Function());  //ボタンにイベントリスナーを設定していない為、その設定。(動的にイベントを切り替える為)


        Message_Box_Button.enabled = false;
        Yes_Button.enabled         = false;
        No_Button.enabled          = false;


        message_Box_Object_Script   = Message_Box_Object.GetComponent <Message_Box_Object_Script>();                   // メッセージボックスのアニメーターの読み込み用
        se_Manager_Script           = SE_Manager_Script_Object.GetComponent <SE_Manager_Script>();                     // SEを管理するスクリプトの読み込み用
        bottom_select_button_Script = Bottom_select_button_Object.GetComponent <Bottom_select_button_Script>();        // 選択肢のアニメーターの読みこみ用
        message_Text_Manager_Script = Message_Text_Manager_Script_Object.GetComponent <Message_Text_Manager_Script>(); // メッセージボックス内のテキストの変更を管理するスクリプトを読み込む用
        game_Manager_Script         = Game_Manager_Object.GetComponent <GameManager>();

        ui_Manager_Script = UI_Manager_Script.GetComponent <UI_Manager_Script>();

        upper_Light_Icon_Manager_Script = Upper_Light_Icon_Manager_Script_Object.GetComponent <Upper_Light_Icon_Manager_Script>();

        dial_Lock_Manager_Script = Dial_Lock_Manager_Script_Object.GetComponent <Dial_Lock_Manager_Script>();

        hint_Manager_Script = Hint_Manager_Script_Object.GetComponent <Hint_Manager_Script>();

        stepladder_Manager_Script = Stepladder_Manager_Script_Object.GetComponent <Stepladder_Manager_Script>();

        camera_Manager_Script = Camera_Manager_Script_Object.GetComponent <Camera_Manager_Script>();

        safe_Box_Script = Safe_Box_Script_Object.GetComponent <Safe_Box_Script>();
    }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        right_Button_Count_int  = 0;
        center_Button_Count_int = 0;
        left_Button_Count_int   = 0;

        Hammer_Object.SetActive(true);
        Safe_Box_Cancel_Button.enabled = false;
        Safe_Box_Animator = GetComponent <Animator>();

        lamp_Array_Button[0].enabled = false;
        lamp_Array_Button[1].enabled = false;
        lamp_Array_Button[2].enabled = false;

        safe_Box_Cancel_Button_Script = Safe_Box_Cancel_Button_Script_Object.GetComponent <Safe_Box_Cancel_Button_Script>();
        camera_Manager_Script         = Camera_Manager_Script_Object.GetComponent <Camera_Manager_Script>();
        ui_Manager_Script             = UI_Manager_Script_Object.GetComponent <UI_Manager_Script>();
        se_Manager_Script             = SE_Manager_Script_Object.GetComponent <SE_Manager_Script>();
        message_Box_Manager_Script    = Message_Box_Manager_Script_Object.GetComponent <Message_Box_Manager_Script>();

        game_Manager_Script = Game_Manager_Script_Object.GetComponent <GameManager>();

        lamp_Button_Image_SpriteRenderer_Object[0].GetComponent <SpriteRenderer>().sprite = lamp_Button_Image_Sprite[color_White];
        lamp_Button_Image_SpriteRenderer_Object[1].GetComponent <SpriteRenderer>().sprite = lamp_Button_Image_Sprite[color_White];
        lamp_Button_Image_SpriteRenderer_Object[2].GetComponent <SpriteRenderer>().sprite = lamp_Button_Image_Sprite[color_White];
    }
Exemplo n.º 3
0
    void Start()
    {
        memo_Manager_Script        = Memo_Manager_Script_Object.GetComponent <Memo_Manager_Script>();
        message_Box_Manager_Script = Message_Box_Manager_Script_Object.GetComponent <Message_Box_Manager_Script>();
        camera_Manager_Script      = Camera_Manager_Script_Object.GetComponent <Camera_Manager_Script>();

        hint_Manager_Script = Hint_Manager_Script_Object.GetComponent <Hint_Manager_Script>();

        UI_Display_OFF_Function();
    }
Exemplo n.º 4
0
    void Start()
    {
        event_While_bool = false;

        message_Box_Manager_Script = Message_Box_Manager_Script_Object.GetComponent <Message_Box_Manager_Script>();

        fade_Manager_Scirpt = Fade_Manager_Script_Object.GetComponent <Fade_Manager_Script>();

        memo_Manager_Script = Memo_Manager_Script_Object.GetComponent <Memo_Manager_Script>();

        message_Text_Manager_Script = Message_Text_Manager_Script_Object.GetComponent <Message_Text_Manager_Script>();

        ui_Manager_Script = UI_Manager_Script_Object.GetComponent <UI_Manager_Script>();

        se_Manager_Script = SE_Manager_Script_Object.GetComponent <SE_Manager_Script>();


        upper_Light_Icon_Manager_Script = Upper_Light_Icon_Manager_Script_Object.GetComponent <Upper_Light_Icon_Manager_Script>();

        dial_Lock_Manager_Script = Dial_Lock_Manager_Script_Object.GetComponent <Dial_Lock_Manager_Script>();

        stepladder_Manager_Script = Stepladder_Manager_Script_Object.GetComponent <Stepladder_Manager_Script>();

        hint_Manager_Script = Hint_Manager_Script_Object.GetComponent <Hint_Manager_Script>();

        safe_Box_Script = Safe_Box_Script_Object.GetComponent <Safe_Box_Script>();

        safe_Box_Cancel_Button_Script = Safe_Box_Cancel_Button_Script_Object.GetComponent <Safe_Box_Cancel_Button_Script>();

        camera_Manager_Script = Camera_Manager_Script_Object.GetComponent <Camera_Manager_Script>();

        item_Box_Script = Item_Box_Script_Object.GetComponent <Item_Box_Script>();

        door_Script = Door_Script_Object.GetComponent <Door_Script>();

        last_Scene_Script = Last_Scene_Script_Object.GetComponent <Last_Scene_Script>();

        //↓イベント1を開始。
        Static_variable_Manager_Script.wall_Number_int       = 2; // 開始時点のシーンは2なので入れておく。
        Static_variable_Manager_Script.text_change_Count_int = 0;

        Static_variable_Manager_Script.message_Box_Event_bool = false;

        Static_variable_Manager_Script.item_Use_Flag_StepLadder_bool = false;
        Static_variable_Manager_Script.item_Use_Flag_Hammer_bool     = false;
        Static_variable_Manager_Script.item_Get_Flag_Memo_bool       = false;
        Static_variable_Manager_Script.item_Get_Flag_Hammer_bool     = false;
        Static_variable_Manager_Script.item_Get_Flag_Key_bool        = false;

        Static_variable_Manager_Script.zoom_Scene_Flag_bool = false;

        Static_variable_Manager_Script.choice_Start_Flag_bool = false;
        Static_variable_Manager_Script.choice_Set_Flag_bool   = false;
        Static_variable_Manager_Script.choice_Flag_bool       = false;

        Static_variable_Manager_Script.message_Box_Manager_dummy_argument_bool = true;

        Static_variable_Manager_Script.event_Flag_No_1_bool  = true;
        Static_variable_Manager_Script.event_Flag_No_2_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_3_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_4_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_5_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_6_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_7_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_8_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_9_bool  = false;
        Static_variable_Manager_Script.event_Flag_No_10_bool = false;

        Static_variable_Manager_Script.event_Flag_No_2_Text_bool = false;

        Static_variable_Manager_Script.item_Memo_Get_Flag_bool = false;

        Static_variable_Manager_Script.event_While_Start_bool = false;

        Static_variable_Manager_Script.upper_Light_Upper_Icon_Item_Get_Flag_bool  = false;
        Static_variable_Manager_Script.upper_Light_Middle_Icon_Item_Get_Flag_bool = false;
        Static_variable_Manager_Script.upper_Light_Bottom_Icon_Item_Get_Flag_bool = false;

        Static_variable_Manager_Script.message_Box_Bottom_Animator_Select_Flag_bool = false;

        Static_variable_Manager_Script.result_time_Int             = 0;
        Static_variable_Manager_Script.result_Hint_Check_Count_int = 0;

        Event_Manager_Function();
    }