Пример #1
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];
    }
Пример #2
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>();
    }
Пример #3
0
    // Start is called before the first frame update
    void Start()
    {
        Dial_Lock_Upper_Number_Change_Right_Button.enabled  = false;
        Dial_Lock_Middle_Number_Change_Right_Button.enabled = false;
        Dial_Lock_Bottom_Number_Change_Right_Button.enabled = false;
        Dial_Lock_Upper_Number_Change_Left_Button.enabled   = false;
        Dial_Lock_Middle_Number_Change_Left_Button.enabled  = false;
        Dial_Lock_Bottom_Number_Change_Left_Button.enabled  = false;
        Dial_Lock_Cancel_Button.enabled = false;

        dial_Lock_Clear_Flag_bool   = false;
        dial_Lock_Upper_Number_int  = 0;
        dial_Lock_Middle_Number_int = 0;
        dial_Lock_Bottom_Number_int = 0;

        dial_Lock_Script = Dial_Lock_3D_Object.GetComponent <Dial_Lock_Script>();//  ダイヤル錠のアニメーターの読み込み。
        Dial_Lock_3D_Object.SetActive(false);

        Dial_Lock_Upper_Number_Left_Text.text  = "9";
        Dial_Lock_Middle_Number_Left_Text.text = "9";
        Dial_Lock_Bottom_Number_Left_Text.text = "9";

        Dial_Lock_Upper_Number_Right_Text.text  = "2";
        Dial_Lock_Middle_Number_Right_Text.text = "2";
        Dial_Lock_Bottom_Number_Right_Text.text = "2";

        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>();
        ui_Manager_Script               = UI_Manager_Script_Object.GetComponent <UI_Manager_Script>();
        upper_Light_Icon_Manager_Script = Upper_Light_Icon_Manager_Script_Object.GetComponent <Upper_Light_Icon_Manager_Script>();
        game_Manager_Script             = Game_Manager_Object.GetComponent <GameManager>();

        stepladder_Manager_Script = Stepladder_Manager_Script_Object.GetComponent <Stepladder_Manager_Script>();
    }
Пример #4
0
    // Start is called before the first frame update
    void Start()
    {
        Stepladder_3D_Object_8.SetActive(true);
        Wall_Set_Chain_and_Dial_Lock_1_3D_Object.SetActive(true);
        Wall_Set_Chain_and_Dial_Lock_2_3D_Object.SetActive(false);

        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>();
    }
Пример #5
0
    // Start is called before the first frame update
    void Start()
    {
        Background_Memo_Object.SetActive(true);
        Memo_Object.SetActive(false);

        memo_Script = Memo_Object.GetComponent <Memo_Script>();
        message_Box_Manager_Script = Message_Box_Manager_Script_Object.GetComponent <Message_Box_Manager_Script>();
        game_Manager_Script        = Game_Manager_Script_Object.GetComponent <GameManager>();
        se_Manager_Script          = SE_Manager_Script_Object.GetComponent <SE_Manager_Script>();
    }
Пример #6
0
    // Start is called before the first frame update
    void Start()
    {
        hint_Script = Hint_Object.GetComponent <Hint_Script>();

        message_Box_Manager_Script = Message_Box_Manager_Script_Object.GetComponent <Message_Box_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>();

        Hint_Object.SetActive(false);
    }
Пример #7
0
    void Start()
    {
        Last_scene_fade_Image_Object.SetActive(false);
        Black_fade_in_Image_Object.SetActive(false);

        play_Time            = 0f;
        play_Start_Flag_bool = false;
        result_Play_Time     = 0;

        total_Point = 0;

        Last_Scene_Message_Box_Button.onClick.AddListener(() => Last_Scene_Animator_For_Coroutine_Function());

        Last_Scene_Message_Box_Button.enabled = false;
        Last_Scene_Message_Box_Button_Object.SetActive(false);

        play_Start_Flag_bool       = false;
        Last_Scene_Script_Animator = GetComponent <Animator>();
        se_Manager_Script          = SE_Manager_Script_Object.GetComponent <SE_Manager_Script>();

        result_Time_Count_Text.text       = "";
        result_Hint_Check_Count_Text.text = "";
        result_Rank_Text.text             = "";
    }
Пример #8
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();
    }