public static void AddZoneToManager(string zoneKey, string zoneId, ADCVideoZoneType videoZoneType) { zoneKey = zoneKey.ToLower(); if (ContainsZoneKey(zoneKey)) { Debug.LogWarning("The ad manager overwrote the previous video zoneId: " + GetZoneIdByKey(zoneKey) + " for the video zone named " + zoneKey + " with the new video zoneId of: " + zoneId); } else { Debug.LogWarning("The ad manager has added the video zone named " + zoneKey + " with the video zoneId of: " + zoneId); ADCAdManager.GetVideoZonesDictionary().Add(zoneKey, new ADCVideoZone(zoneId, videoZoneType)); } }
public static void AddZoneToManager(string zoneKey, string zoneId, ADCVideoZoneType videoZoneType) { zoneKey = zoneKey.ToLower(); if(ContainsZoneKey(zoneKey)) { Debug.LogWarning("The ad manager overwrote the previous video zoneId: " + GetZoneIdByKey(zoneKey) + " for the video zone named " + zoneKey + " with the new video zoneId of: " + zoneId); } else { Debug.LogWarning("The ad manager has added the video zone named " + zoneKey + " with the video zoneId of: " + zoneId); ADCAdManager.GetVideoZonesDictionary().Add(zoneKey, new ADCVideoZone(zoneId, videoZoneType)); } }
public ADCVideoZone(string newZoneId, ADCVideoZoneType newVideoZoneType) { zoneId = newZoneId; zoneType = newVideoZoneType; }