//=====================================================================================================================// //=================================================== Public Methods ==================================================// //=====================================================================================================================// #region Public Methods public static GameEventTargetSet Clone(GameEventTargetSet original) { var newSet = new GameEventTargetSet(); if (original == null) { return(newSet); } for (var i = 0; i < original.targets.Count; i++) { newSet.targets.Add(GameEventTarget.Clone(original.targets[i])); } return(newSet); }
//=====================================================================================================================// //=================================================== Public Methods ==================================================// //=====================================================================================================================// #region Public Methods public static GameEventHandler Clone(GameEventHandler original) { if (original == null) { return(null); } var newHandler = new GameEventHandler { Event = GameEventReference.Clone(original.Event), isMuted = original.isMuted, hasBeenInitialized = false, _targets = GameEventTargetSet.Clone(original._targets) }; return(newHandler); }