Update Project

This commit is contained in:
2026-03-20 13:04:43 +02:00
parent 9b587e6cba
commit beae2dea89
2295 changed files with 251259 additions and 33 deletions
@@ -0,0 +1,31 @@
#if !NOT_UNITY3D
using ModestTree;
using UnityEngine;
namespace Zenject
{
[NoReflectionBaking]
public class PrefabProviderResource : IPrefabProvider
{
readonly string _resourcePath;
public PrefabProviderResource(string resourcePath)
{
_resourcePath = resourcePath;
}
public UnityEngine.Object GetPrefab(InjectContext context)
{
var prefab = (GameObject)Resources.Load(_resourcePath);
Assert.That(prefab != null,
"Expected to find prefab at resource path '{0}'", _resourcePath);
return prefab;
}
}
}
#endif