/// <summary> /// Triggered by the Maps SDK during the loading process. /// Notifies the SDK if the GameObject for water lines needs to be created (or not) based on /// the value of the UI flag. /// </summary> void OnWillCreateLineWater(WillCreateLineWaterArgs args) { args.Cancel = !ShowLineWater; }
/// <summary> /// Handle <see cref="LineWaterEvents.WillCreate"/> event by specifying the line water styles. /// </summary> /// <param name="args">Event arguments.</param> public void HandleWillCreateLineWater(WillCreateLineWaterArgs args) { args.Style = GameObjectOptions.LineWaterStyle; }
/// <summary> /// Handle <see cref="LineWaterEvents.WillCreate"/> event by specifying the line water styles. /// </summary> public void HandleWillCreateLineWater(WillCreateLineWaterArgs arguments) { arguments.Style = _mapDefaultStyle.LineWaterStyle; }