Ejemplo n.º 1
0
        private static void Inject(HatDefinition HatDefinition)
        {
            var Manager = HatManager.Instance;
            var Hat     = ScriptableObject.CreateInstance <HatBehaviour>();

            Hat.Free       = true;
            Hat.NotInStore = true;
            Hat.ProductId  = $"xeno_hat_{HatDefinition.Name.ToLowerInvariant()}";
            Hat.StoreName  = $"Xeno Hat {HatDefinition.Name}";

            Hat.MainImage   = HatDefinition.Main;
            Hat.FloorImage  = HatDefinition.Floor;
            Hat.BackImage   = HatDefinition.Back;
            Hat.ChipOffset  = HatDefinition.ChipOffset;
            Hat.AltShader   = null;
            Hat.RelatedSkin = null;
            Hat.InFront     = HatDefinition.InFront;

            Manager.AllHats.Add(Hat);
        }
Ejemplo n.º 2
0
 public static void Add(HatDefinition Definition)
 {
     Definitions.Add(Definition);
 }