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

            levelSelectedCallback_.Invoke(config);
            levelSelectedCallback_ = null;
        }
Exemplo 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;
        }
Exemplo n.º 3
0
 public void Init(CoopLevelConfig config, Action <CoopLevelConfig> levelSelectedCallback)
 {
     levelSelectedCallback_ = levelSelectedCallback;
     config_ = config;
     displayNameTextOutlet_.Text = config.DisplayName;
 }
Exemplo n.º 4
0
 private void HandleLevelSelected(CoopLevelConfig config)
 {
     CoopLevelManager.SetCurrentLevelConfig(config);
     StateMachine_.GoToPlayerCustomization();
 }