コード例 #1
0
        public static void Init()
        {
            string          itemName     = "Ejector Module";
            string          resourceName = "BunnyMod/Resources/WeaponModules/t2weaponmodularejector.png";
            GameObject      obj          = new GameObject(itemName);
            T2ModuleEjector Module       = obj.AddComponent <T2ModuleEjector>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Discharge.";
            string longDesc  = "Shoots a burst of bullets on reload.";

            Module.SetupItem(shortDesc, longDesc, "bny");
            Module.quality = PickupObject.ItemQuality.EXCLUDED;
        }