Beispiel #1
0
 public SpriteRenderer(string path, int depth = 0)
 {
     InjectionContainer.Instance.InjectDependencies(this);
     tex = assetPipeline.GetAsset <AssetTexture>(path);
 }
Beispiel #2
0
 public TextRenderer(string path)
 {
     InjectionContainer.Instance.InjectDependencies(this);
     font = assetPipeline.GetAsset <AssetFont>(path);
 }