public void Update(GameTime gameTime)
        {
            if (!battleTransition)
            {
                worldCharacter.Update(gameTime);
            }
            WorldMovement();

            //WorldMapAnimation
            WorldMapAnimation(gameTime);
            _autoElements.Update(gameTime);

            _sunColor = GSS.GetSunPositionColor();

            SceneWorker.AttemptSceneChange(worldCharacter.GetCenterTilePosition());
        }
示例#2
0
 //public bool noneNormStart;
 void Awake()
 {
     //Debug.Log("test0 agent in game");
     if (battleInformation == null)
     {
         //Debug.Log("test1 agent in game");
         DontDestroyOnLoad(gameObject);
         battleInformation = this;
     }
     else if (battleInformation != this)
     {
         SceneWorker sceneWorkerScript = new SceneWorker();
         sceneWorkerScript.Manager();
         Destroy(gameObject);
     }
     else
     {
         Debug.Log("test7 agent in game");
     }
 }
示例#3
0
        public int Process(string source, string output)
        {
            Watch.Start();
            var scene = SceneWorker.Parse(source);

            Watch.Stop("Loading scene");

            Watch.Start();
            scene.PrepareScene();
            Watch.Stop("Preparing scene");

            Watch.Start();
            var image = Renderer.Render(scene);

            Watch.Stop("Rendering scene");

            Watch.Start();
            ImageWorker.SaveImage(image, output);
            Watch.Stop("Saving render");

            return(0);
        }
示例#4
0
 internal void Update(GameTime gameTime)
 {
     SceneWorker.AttemptSceneChange(sceneCharacter.GetTilePosition());
 }