protected override T CreateInstance(Ninject.Activation.IContext context) { Resource resource = Scoping.getContextAttribute <Resource>(context); if (null != resource) { loader.loadResource <UnityEngine.Object>(resource.Path); } return(new Moq.Mock <T>().Object); }
public T CreateInstance(Ninject.Activation.IContext context) { XMLConfigValue value = Scoping.getContextAttribute <XMLConfigValue>(context); if (value == null) { return(default(T)); } return(manager.getValue <T>(value.file, value.xpath)); }