Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        /*Cube用情報構造体*/
        t = new t_box ();

        //元の透明
        Cube_color1 = new Color(255f,255f,255f,0f);
        Cube_color1.a = 0f;

        //赤色
        Cube_color2 = new Color(1f,0f,0f,0f);
        Cube_color2.a = 0.4f;

        //黒色
        Cube_color3 = new Color(0f,0f,0f,0f);
        Cube_color3.a = 0.8f;
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     /*Mainクラスのオブジェクトを作成しておく*/
     main = GameObject.Find ("Main_manager");
     t1 = new t_box ();
     BirthCube();
 }