示例#1
0
        private void HandleLevelSelected(CoopLevelConfig config)
        {
            if (levelSelectedCallback_ == null)
            {
                return;
            }

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

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