예제 #1
0
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            var type = (int)packet.ReadBits(16);

            VorbisTime time = null;
            switch (type)
            {
                case 0: time = new Time0(vorbis); break;
            }
            if (time == null) throw new InvalidDataException();

            time.Init(packet);
            return time;
        }
예제 #2
0
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            int        num        = (int)packet.ReadBits(16);
            VorbisTime vorbisTime = null;

            if (num == 0)
            {
                vorbisTime = new Time0(vorbis);
            }
            if (vorbisTime == null)
            {
                throw new InvalidDataException();
            }
            vorbisTime.Init(packet);
            return(vorbisTime);
        }
예제 #3
0
        internal static VorbisTime Init(VorbisStreamDecoder vorbis, DataPacket packet)
        {
            var type = (int)packet.ReadBits(16);

            VorbisTime time = null;

            switch (type)
            {
            case 0: time = new Time0(vorbis); break;
            }
            if (time == null)
            {
                throw new InvalidDataException();
            }

            time.Init(packet);
            return(time);
        }
예제 #4
0
    public GameObject SImage;  //评分背景图片S

    void Awake()
    {
        _instance = this;
    }