<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

Home Page

Overview

Levels Creation

Custom Stage

Enemy

Hat Skins

Gun Skins

Monetization (Ads & IAP)

How to add gun skins

  1. Find Blue Gun prefab in Assets/Project Files/Game/Prefabs/Guns/Player folder and duplicate it (Ctrl + D on Windows or Cmd + D on Mac). Rename copy to what every you want. Double click to open it.

  2. Drag the new gun model into the Hierarchy window (green gun on example)

    Screenshot_10.png

    Screenshot_11.png

  3. Adjust the gun position so the handle of the new gun matches the position of an old gun.

    Screenshot_12.png

  4. Delete old gun visuals (object called SR_Gun_Blue).

    Screenshot_13.png

  5. Select Shoot Point and adjust it’s position if needed. It should be right at the position where the bullet will apper.

    Screenshot_14.png

  6. Click this little arrow in Hierarchy window to exit prefab mode.

    Screenshot_15.png

  7. Find the Assets/Project Files/Data/Guns System/Guns/Player Guns folder and the Blue Gun object inside.

    Screenshot_16.png

  8. Copy the Blue Gun object (duplicate it (Ctrl + D on Windows or Cmd + D on Mac). Rename the copy to whatever you want.

  9. Select it and drag the newly created gun prefab into the Gun Prefab field.

    Untitled

  10. Select the Gun Skins Database object located in the Project Files/Data/Skins folder.

    image.png

  11. Click the little + button at the bottom of the list to add another skin.

    Untitled

  12. Assign the preview image and the gun data file created in Step 8. This database will provide skins to other game modules in our case to the store.

    image.png

  13. Select the Skins Store Database object located in the Project Files/Data/Skins folder. This database stores settings of all products displayed in the store.

    image.png

  14. Select the Guns tab at the top of the Product part of the window

    Untitled

  15. Click the little + button at the bottom of the Products section to add another product.

    Untitled

  16. Click the product called New Element to configure the fields:

    1. Name - a name of the product (just for your convenience)
    2. Opened Sprite - image of your product when it’s purchased
    3. Locked Sprite - image of your product when not purchased
    4. 2D Sprite Preview - leave it blank as the store uses 3D preview in this case.
    5. Skin Id - select the required product form the list.
    6. Purchase Type - the product can be purchased using currency or by watching rewarded videos
    7. Currency - a currency used for purchasing
    8. Cost - the amount of required currency to purchase the product or amount of required RVs.
    9. Tab - select the available store tab. You can configure tabs in the Tabs section above.
    10. Is Dummy - if the variable is checked product won’t be interactable

    image.png