private void Start() { g_game_con_Script = GameObject.Find("Game_Controller").GetComponent <Game_Controller>(); g_player_con_Script = GameObject.Find("Player_Controller").GetComponent <Playercontroller>(); g_direction_Script = GameObject.Find("Player_Controller").GetComponent <Player_Direction>(); g_dice_create_Script = GameObject.Find("Stage_Pool").GetComponent <Dice_Create>(); g_trouble_Script = GameObject.Find("TroubleObj").GetComponent <TroubleScr>(); Array_Reset(); }
void Start() { g_trouble_Script = GameObject.Find("TroubleObj").GetComponent <TroubleScr>(); g_result_Script = GameObject.Find("Stageinformation").GetComponent <ResultScript>(); g_clear_Script = GameObject.Find("Game_Controller").GetComponent <Stage_Clear>(); g_folder_Script = GameObject.Find("Stageinformation").GetComponent <Folder_Script>(); g_information_Script = GameObject.Find("Stageinformation").GetComponent <StageInformation>(); g_game_con_Script = GameObject.Find("Game_Controller").GetComponent <Game_Controller>(); g_player_Script = GameObject.Find("Player_Controller").GetComponent <Playercontroller>(); g_player_anim_Script = this.GetComponent <Player_Animation>(); g_player_obj = this.gameObject; }
void Start() { g_player_con_Script = GameObject.Find("Player_Controller").GetComponent <Playercontroller>(); g_parent_rotate_Script = GameObject.Find("Dice_Controller").GetComponent <Parent_All_Rotation>(); g_trouble_script = GameObject.Find("TroubleObj").GetComponent <TroubleScr>(); g_dice_Script = this.GetComponent <Dice_Squares>(); g_se_source_Script = GameObject.Find("SEList").GetComponent <Se_Source>(); //操作オブジェクト取得 g_dice_Obj = this.gameObject; //サイズを求める g_dice_Size = g_dice_Obj.transform.localScale.x / g_size_change; //回転速度の初期化 g_rotation_Speed = g_start_rotation_Speed; }