Exemplo n.º 1
0
        internal static void Prefix(ref MultiplayerConnectedPlayerInstaller __instance,
                                    ref MultiplayerConnectedPlayerGameNoteController ____multiplayerGameNoteControllerPrefab,
                                    ref MultiplayerConnectedPlayerBombNoteController ____multiplayerBombNoteControllerPrefab)
        {
            var         mib       = __instance as MonoInstallerBase;
            DiContainer Container = Accessors.GetDiContainer(ref mib);

            _staticMultiplayerGameNotePrefab = ____multiplayerGameNoteControllerPrefab;
            _staticMultiplayerBombNotePrefab = ____multiplayerBombNoteControllerPrefab;

            if (_staticMultiplayerGameNotePrefab != null)
            {
                ____multiplayerGameNoteControllerPrefab = _staticMultiplayerGameNotePrefab;
            }
            if (_staticMultiplayerBombNotePrefab != null)
            {
                ____multiplayerBombNoteControllerPrefab = _staticMultiplayerBombNotePrefab;
            }

            var normal = BeatmapObjectRedecorator.InstallModelProviderSystem(Container, ____multiplayerGameNoteControllerPrefab);
            var bomb   = BeatmapObjectRedecorator.InstallModelProviderSystem(Container, ____multiplayerBombNoteControllerPrefab);

            if (normal != null)
            {
                ____multiplayerGameNoteControllerPrefab = normal;
            }
            if (bomb != null)
            {
                ____multiplayerBombNoteControllerPrefab = bomb;
            }
        }
Exemplo n.º 2
0
        internal static void Prefix(DiContainer container, ref FlyingTextEffect ____flyingTextEffectPrefab)
        {
            _staticFlyingTextEffectPrefab = ____flyingTextEffectPrefab;

            if (_staticFlyingTextEffectPrefab != null)
            {
                ____flyingTextEffectPrefab = _staticFlyingTextEffectPrefab;
            }

            var flyingText = BeatmapObjectRedecorator.InstallModelProviderSystem(container, ____flyingTextEffectPrefab);

            if (flyingText != null)
            {
                flyingText.gameObject.SetActive(false);
                ____flyingTextEffectPrefab.gameObject.SetActive(false);
                ____flyingTextEffectPrefab = flyingText;
            }
        }