Пример #1
0
        public void play(loopMode loop = loopMode.noLoop, bool paused = false)
        {
            eInstance instance = prePlay();

            instance.addToGroup(this.engine.defaultMusicGroup);
            instance.is3d = false;
            instance.setLoop(loop);
            instance.paused = paused;
        }
Пример #2
0
        public eInstance play(float pan = 0, loopMode loop = loopMode.noLoop, bool paused = false)
        {
            eInstance instance = prePlay();

            instance.pan = pan;

            instance.addToGroup(this.engine.default2dGroup);
            instance.is3d = false;
            instance.setLoop(loop);
            instance.paused = paused;
            return(instance);
        }
Пример #3
0
        public eInstance play3d(float x, float y, float z, loopMode loop = loopMode.noLoop, bool paused = false)
        {
            eInstance instance = prePlay();

            instance.x = x;
            instance.y = y;
            instance.z = z;
            instance.setLoop(loop);
            instance.is3d   = true;
            instance.paused = paused;
            return(instance);
        }