Introduction

First of all, the game must be launched from the "Initializer" scene for it to work correctly. You can find Game Settings, Levels and Weapons presets in Resources folder. By the way I created 2 level and 2 weapon data for the example. Thanks for taking your time to examine.

Enjoy!

Overview

Unity Version : 2019.4.23f1

  • Dependent Packages :
    • DOTween
    • UniTask
    • MyBox

Game Settings

alt tag

- Player Speed : This field helper for change speed of player.
- Enemy Speed : This field helper for change speed of enemys.
- Wall Prefab : This field reference of wall prefab.
- Gem Prefab : This field reference of gem prefab.
- Enemy Prefab : This field reference of enemy prefab.
- Boss Prefab : This field reference of boss prefab.

Notice : Some statics fields included in CommonTypes script :

- PLAYER_SPEED_MULTIPLIER
- ENEMY_SPEED_MULTIPLIER
- CAMERA_SPEED
- FLY_GEM_TIME
- AREA_SIZE_MULTIPLIER
- etc.

Create Level

You can create level in easly. Steps:

1 - Create New Level Object

alt tag

2 - Fill Fields of Level

alt tag

- Id : This field is should be uniqe and in order.
- Play Area : This field is indicates objects that will appear in front of the player.
- Enemy Area : This field is indicates objects that will appear in behind of the player.
- Skybox : This field is determines weather of the level.

3 - Last Step

alt tag

After everything is over you should add created level to Levels fields of Manager Controller in Initializer scene.

Create Weapon

You can create weapon in easly. Steps:

1 - Create New Level Weapon

alt tag

2 - Fill Fields of Weapon

alt tag

- Id : This field is should be uniqe and in order.
- Damge : This field is damage amount of the weapon.
- Capacity : This field is max capacity amount of the weapon.
- Reload Time : This field is reloading time of the weapon.
- Trigger Delay : This field is trigger delay of the weapon.
- Prefab : This field is reference game object of the weapon.
- Icon : This field is icon of the weapon.
- Fire Clip : This field is fire sound of the weapon.
- Reload Clip : This field is reload sound of the weapon.

3 - Last Step

alt tag

After everything is over you should add created weapon to Weapons fields of Manager Controller in Initializer scene.

Sound Manager

alt tag

If you want change game sounds you can make with Sound Manager script. Sound Manager script is located on Game scene.