Exemple #1
0
        /* Activate cut scene function */
        public static void Activate(string key)
        {
            CutScene scene = Scenes[key];

            Activated.Enqueue(scene);
            scene.Start();
        }
Exemple #2
0
 /* Add scene function */
 public static void AddScene(string key, CutScene scene)
 {
     Scenes.Add(key, scene);
     scene.key = key;
     scene.Load();
     scene.ShaderLoad();
 }
Exemple #3
0
        /* Dectivate cut scene function */
        public static void DeActivate(string key)
        {
            CutScene scene = Activated.Peek();

            if (scene.key == key)
            {
                Activated.Dequeue();
                scene.End();
            }
        }