/// <summary> /// Triggered by the Maps SDK during the loading process. /// Notifies the SDK if the GameObject for water areas needs to be created (or not) based on /// the value of the UI flag. /// </summary> void OnWillCreateAreaWater(WillCreateAreaWaterArgs args) { args.Cancel = !ShowAreaWater; }
/// <summary> /// Handle <see cref="AreaWaterEvents.WillCreate"/> event by specifying the area water styles. /// </summary> /// <param name="args">Event arguments.</param> public void HandleWillCreateAreaWater(WillCreateAreaWaterArgs args) { args.Style = GameObjectOptions.AreaWaterStyle; }
/// <summary> /// Handle <see cref="AreaWaterEvents.WillCreate"/> event by specifying the area water styles. /// </summary> public void HandleWillCreateAreaWater(WillCreateAreaWaterArgs arguments) { arguments.Style = _mapDefaultStyle.AreaWaterStyle; }