public void Dispose()
 {
     gameProcessControl = null;
     if (currentProcess != null)
     {
         currentProcess.Dispose();
         currentProcess = null;
     }
 }
コード例 #2
0
    //层管理
    //public static ILayerManager layerManager = null;


    private static void GameEnvironmentInitialization()
    {
        if (isRunedGameEnvironmentInitialization)
        {
            return;
        }
        isRunedGameEnvironmentInitialization = true;

        //layerManager = new ILayerManager();

        musicPlayer = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("MusicPlayer.prefab"),
                                                        null, typeof(MusicPlayer)) as MusicPlayer;
        soundEffectPlayer = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("SoundEffectPlayer.prefab"),
                                                              null, typeof(SoundEffectPlayer)) as SoundEffectPlayer;
        inputDevice = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("InputDevice.prefab"),
                                                        null, typeof(InputDevice)) as InputDevice;
        gameProcessControl = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("GameProcessControl.prefab"),
                                                               null, typeof(UniGameProcessControl)) as UniGameProcessControl;
        uiOrthographicCamera = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("UICamera.prefab"),
                                                                 null, typeof(UniUIOrthographicCamera)) as UniUIOrthographicCamera;
    }
    private static void GameEnvironmentInitialization()
    {
        if (isRunedGameEnvironmentInitialization)
        {
            return;
        }
        isRunedGameEnvironmentInitialization = true;
        musicPlayer = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("MusicPlayer.prefab"),
                                                        null, typeof(MusicPlayer)) as MusicPlayer;
        soundEffectPlayer = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("SoundEffectPlayer.prefab"),
                                                              null, typeof(SoundEffectPlayer)) as SoundEffectPlayer;
        inputDevice = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("InputDevice.prefab"),
                                                        null, typeof(InputDevice)) as InputDevice;
        gameProcessControl = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("GameProcessControl.prefab"),
                                                               null, typeof(UniGameProcessControl)) as UniGameProcessControl;
//#if _IgnoreVerify
//#else
        verifyEnvironment = new VerifyEnvironment();
//#endif//_IgnoreVerify
        uiOrthographicCamera = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("UICamera.prefab"),
                                                                 null, typeof(UniUIOrthographicCamera)) as UniUIOrthographicCamera;
        backRoundConctrl = UniGameResources.NormalizePrefabs(UniGameResources.currentUniGameResources.LoadResource_Prefabs("BackRoundControl.prefab"),
                                                             null, typeof(UniGameProcessControl)) as BackRoundControl;
    }
 public SingleProcessControl(UniGameProcessControl gameprocesscontrol)
 {
     gameProcessControl = gameprocesscontrol;
 }