예제 #1
0
 public void Initialize()
 {
     mapRepo = new MapRepo(WorldManager.getOrCreateWorld("DefaultWorld"), WorldManager.getOrCreateWorld("MapGenWorld"));
     ConfigVar.Init();
     StaticInputController.init();
     World mapGenWorld = WorldManager.getOrCreateWorld("MapGenWorld");
 }
예제 #2
0
    protected override void OnUpdate()
    {
        // Assign values to local variables captured in your job here, so that it has
        // everything it needs to do its work when it runs later.
        // For example,
        float   deltaTime = Time.DeltaTime;
        Vector2 dir       = StaticInputController.getMovement();

        Entities.ForEach((ref Translation translation, ref Rotation rotation, ref CharacterController.State state, ref CharacterController.Stat stat) =>
        {
            //first update userCommand
            RotateNMove(dir, ref state, ref stat, deltaTime, ref translation, ref rotation);
        }).WithoutBurst().Run();
    }