public void Initialize(Texture2D texture, ShaderProgram program)
        {
            size         = GameParameters.CubeSize;
            scale        = 1.0f;
            selectStatus = CubeSelectStatus.NotSelected;
//			selectStatus = SelectStatus.None;

            front = new Plane(gc);
            front.Initialize(texture, program);

            left = new Plane(gc);
            left.Initialize(texture, program);

            back = new Plane(gc);
            back.Initialize(texture, program);

            right = new Plane(gc);
            right.Initialize(texture, program);

            top = new Plane(gc);
            top.Initialize(texture, program);

            bottom = new Plane(gc);
            bottom.Initialize(texture, program);
        }
        public void Clicked(Texture2D texture, CubeSelectStatus status)
        {
            if (this.selectStatus == CubeSelectStatus.NotSelected)
            {
                /* 新たに状態が変わるときのみ */
                this.selectStatus = status;

                front.Texture  = texture;
                left.Texture   = texture;
                back.Texture   = texture;
                right.Texture  = texture;
                top.Texture    = texture;
                bottom.Texture = texture;
            }
        }
 public void Reset(Texture2D texture)
 {
     selectStatus  = CubeSelectStatus.NotSelected;
     front.Texture = texture;
     front.Update();
     left.Texture = texture;
     left.Update();
     back.Texture = texture;
     back.Update();
     right.Texture = texture;
     right.Update();
     top.Texture = texture;
     top.Update();
     bottom.Texture = texture;
     bottom.Update();
 }