コード例 #1
0
ファイル: CodeConventions.cs プロジェクト: Darkfafi/P_PVB
        public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
        {
#if IOS
            // return   [IOS version of class].
#elif ANDROID
            // return   [Android version of class].
#else
            return(null); // return this version of class.
#endif
        }
コード例 #2
0
    public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
    {
        AudioLibrary Library = Resources.Load <AudioLibrary>("Libraries/AudioLibrary");

        if (Library == null)
        {
            Debug.LogError("AudioLibrary not found at: " + "Resources/Libraries/AudioLibrary");
            return(null);
        }
        return(Library);
    }
コード例 #3
0
 public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
 {
     Library = confactoryFinder.Get <AudioLibrary>();
     SetAudioStationVolume(DEFAULT_STATION, startDefaultVolume);
     SetAudioStationVolume(EFFECTS_STATION, startEffectsVolume);
     SetAudioStationVolume(MUSIC_STATION, startMusicVolume);
     SetAudioStationPitch(DEFAULT_STATION, startDefaultPitch);
     SetAudioStationPitch(EFFECTS_STATION, startEffectsPitch);
     SetAudioStationPitch(MUSIC_STATION, startMusicPitch);
     SoloAudioLoopToggle(MUSIC_STATION, true);
     return(null);
 }
コード例 #4
0
    public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
    {
        ScreenTransitionObject stoResource = Resources.Load <ScreenTransitionObject>("UI/TransitionScreen");

        if (stoResource == null)
        {
            Debug.LogWarning("No TransitionScreen found at 'Resources/UI/TransitionScreen'. Using Default screen instead");
            stoResource = Resources.Load <ScreenTransitionObject>("ConfactoryResources/ScreenSwitching/TransitionScreen");
        }

        transitionObject = GameObject.Instantiate <ScreenTransitionObject>(stoResource);
        ConfactoryTools.SetObjectWithConGameObjectSettings(transitionObject.gameObject);
        transitionObject.FadeInCompleteEvent -= FadeInComplete;
        transitionObject.FadeInCompleteEvent += FadeInComplete;


        transitionObject.FadeOutCompleteEvent -= FadeOutComplete;
        transitionObject.FadeOutCompleteEvent += FadeOutComplete;
        return(null);
    }
コード例 #5
0
 public IConfactory ConStruct(IConfactoryFinder finder)
 {
     gameBindings = ConfactoryFinder.Instance.Get <ConGameInputBindings>();
     return(null);
 }
コード例 #6
0
ファイル: ConCoroutines.cs プロジェクト: Darkfafi/P_PVB
 public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
 {
     coroutineObject = ConfactoryTools.CreateConGameObject(NAME_OBJECT).AddComponent <CoroutineObject>();
     UpdateName();
     return(null);
 }
コード例 #7
0
ファイル: ConEntityDatabase.cs プロジェクト: Darkfafi/P_PVB
 public IConfactory ConStruct(IConfactoryFinder confactoryFinder)
 {
     conEntityIdHandler = confactoryFinder.Get <ConEntityIdHandler>();
     return(null);
 }