Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }