Ejemplo n.º 1
0
        private void HandleLevelSelected(CoopLevelConfig config)
        {
            if (levelSelectedCallback_ == null)
            {
                return;
            }

            levelSelectedCallback_.Invoke(config);
            levelSelectedCallback_ = null;
        }
Ejemplo n.º 2
0
        public static void SetCurrentLevelConfig(CoopLevelConfig config)
        {
            if (currentLevelConfig_ != null)
            {
                Debug.LogWarning("Cannot set current level when currently playing coop!");
                return;
            }

            currentLevelConfig_ = config;
        }
Ejemplo n.º 3
0
 public void Init(CoopLevelConfig config, Action <CoopLevelConfig> levelSelectedCallback)
 {
     levelSelectedCallback_ = levelSelectedCallback;
     config_ = config;
     displayNameTextOutlet_.Text = config.DisplayName;
 }
Ejemplo n.º 4
0
 private void HandleLevelSelected(CoopLevelConfig config)
 {
     CoopLevelManager.SetCurrentLevelConfig(config);
     StateMachine_.GoToPlayerCustomization();
 }