public static void AddZoneToManager(string zoneKey, string zoneId, ADCVideoZoneTypeCustom 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); ADCAdManagerCustom.GetVideoZonesDictionary().Add(zoneKey, new ADCVideoZoneCustom(zoneId, videoZoneType)); } }
public ADCVideoZoneCustom(string newZoneId, ADCVideoZoneTypeCustom newVideoZoneType) { zoneId = newZoneId; zoneType = newVideoZoneType; }