Beispiel #1
0
 public void Init()
 {
     _systems.Add(new TileResourceSpriteUpdateSystem(_contexts));
     _entity      = _contexts.tile.CreateEntity();
     _sprite      = Resources.Load <Sprite>("Test/Editor/Sprite");
     _spriteEmpty = Resources.Load <Sprite>("Test/Editor/Sprite2");
     _entity.AddSprite(null);
     _entity.AddTileResource(Resource.Wood, _spriteEmpty);
     _entity.tileResource.SetOriginalSprite(_sprite);
 }