Esempio n. 1
0
 public static IServiceCollection AddHygouServices(this IServiceCollection sc, EnvironmentType envType)
 {
     sc.AddSetting <HygouSetting>();
     sc.AddInitializer("data", "初始化Hygou数据", sp => SystemInitializer.Initialize(sp, envType));
     sc.AddInitializer("product", "初始化Hygou产品", sp => SampleImporter.ImportSamples(sp));
     sc.InitServices("初始化服务", NewSerivces);
     return(sc);
 }
Esempio n. 2
0
    void Start()
    {
        channel = logo.gameObject.AddComponent <LerpImageChannel>();

        Color logoColor = logo.color;

        logoColor.a = 0f;
        logo.color  = logoColor;

        systemInitializer = SystemInitializer.Initialize();
        StartCoroutine(systemInitializer);

        channel.Activate(
            duration: 0.5f,
            finishedCallback: FadeIn);
    }