예제 #1
0
        public override IEnumerator PerformFirstPass()
        {
            ErrorsMap errorsMap = new ErrorsMap();

            errorsMap.LoadErrorJson("Errors/errors.json");
            Service.Set(errorsMap);
            yield break;
        }
예제 #2
0
        private void Awake()
        {
            Service.ResetAll();
            Service.Set(new EventDispatcher());
            Service.Set((JsonService) new LitJsonService());
            GameObject gameObject = GameObject.Find("CoroutineRunner");

            if (gameObject != null)
            {
                UnityEngine.Object.Destroy(gameObject);
            }
            gameObject = new GameObject("CoroutineRunner");
            gameObject.AddComponent <CoroutineRunner>();
            ContentManifest manifest = ContentManifestUtility.FromDefinitionFile("Configuration/embedded_content_manifest");
            Content         instance = new Content(manifest);

            Service.Set(instance);
            ErrorsMap errorsMap = new ErrorsMap();

            errorsMap.LoadErrorJson("Errors/errors.json");
            Service.Set(errorsMap);
        }