예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <summary>
 /// Handle <see cref="AreaWaterEvents.WillCreate"/> event by specifying the area water styles.
 /// </summary>
 public void HandleWillCreateAreaWater(WillCreateAreaWaterArgs arguments)
 {
     arguments.Style = _mapDefaultStyle.AreaWaterStyle;
 }