Beispiel #1
0
    void update_temp(puyopuyo temp_puyo)
    {
        delete_temp();

        if (temp_puyo.is_valid() == false)
        {
            return;
        }

        for (int i = 0; i < 2; i++)
        {
            int color = temp_puyo.get_color(i);

            if (color == 0)
            {
                continue;
            }

            Point   temp_pos = temp_puyo.get_position(i);
            Vector3 pos      = new Vector3(temp_pos.get_x(), temp_pos.get_y(), 0);

            m_dislayTemp[i] = Instantiate(m_PrefabPuyo[color - 1], pos, new Quaternion(0, 0, 0, 0));
        }
    }