private void HandleLevelSelected(CoopLevelConfig config) { if (levelSelectedCallback_ == null) { return; } levelSelectedCallback_.Invoke(config); levelSelectedCallback_ = null; }
public static void SetCurrentLevelConfig(CoopLevelConfig config) { if (currentLevelConfig_ != null) { Debug.LogWarning("Cannot set current level when currently playing coop!"); return; } currentLevelConfig_ = config; }
public void Init(CoopLevelConfig config, Action <CoopLevelConfig> levelSelectedCallback) { levelSelectedCallback_ = levelSelectedCallback; config_ = config; displayNameTextOutlet_.Text = config.DisplayName; }
private void HandleLevelSelected(CoopLevelConfig config) { CoopLevelManager.SetCurrentLevelConfig(config); StateMachine_.GoToPlayerCustomization(); }