Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 void Start()
 {
     g_player_con_Script    = GameObject.Find("Player_Controller").GetComponent <Playercontroller>();
     g_parent_rotate_Script = GetComponent <Parent_All_Rotation>();
 }