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,29 @@
#if !NOT_UNITY3D
using ModestTree;
using UnityEngine;
using System;
namespace Zenject
{
[NoReflectionBaking]
public class PrefabProviderCustom : IPrefabProvider
{
readonly Func<InjectContext, UnityEngine.Object> _getter;
public PrefabProviderCustom(Func<InjectContext, UnityEngine.Object> getter)
{
_getter = getter;
}
public UnityEngine.Object GetPrefab(InjectContext context)
{
var prefab = _getter(context);
Assert.That(prefab != null, "Custom prefab provider returned null");
return prefab;
}
}
}
#endif