public static CustomHats.HatExtension getHatExtension(this HatBehaviour hat) { CustomHats.HatExtension ret = null; if (CustomHats.TestExt != null && CustomHats.TestExt.condition.Equals(hat.name)) { return(CustomHats.TestExt); } CustomHats.CustomHatRegistry.TryGetValue(hat.name, out ret); return(ret); }
public static CustomHats.HatExtension getHatExtension(this HatBehaviour hat) { CustomHats.HatExtension ret = null; CustomHats.CustomHatRegistry.TryGetValue(hat.name, out ret); return(ret); }