Ejemplo n.º 1
0
        private void InitialiseSubControllers(
            SpeedController speedController,
            HotkeyWatcher hotkeyWatcher,
            CardAnimationController cardAnimationController,
            MapController mapController,
            EndGameAnimController endGameAnimController,
            Notifier notifier,
            OptionsPanel optionsPanel)
        {
            orig_InitialiseSubControllers(
                speedController,
                hotkeyWatcher,
                cardAnimationController,
                mapController,
                endGameAnimController,
                notifier,
                optionsPanel);

            if (_defaultMapSprite != null)
            {
                return;
            }

            var image = mapBackground.GetComponent <Image>();

            _defaultMapSprite = image.sprite;
        }
Ejemplo n.º 2
0
 private extern void orig_InitialiseSubControllers(
     SpeedController speedController,
     HotkeyWatcher hotkeyWatcher,
     CardAnimationController cardAnimationController,
     MapController mapController,
     EndGameAnimController endGameAnimController,
     Notifier notifier,
     OptionsPanel optionsPanel);