- DataBase
- UI
- Profile (Save/Load)
- Spawner
- LanguageTable (Localization)
- Audio
- Messenger
- Time
- Other helper Utils
Guide:
- Step 1: Clone this repo as a submodule into your Unity project. You can put it in
-
Step 2: There will be a lot of errors. I know, DON'T PANIC ☠. Follow this sub steps.
-
Step 3: Hopefully at this point. There will be no errors.
-
Step 4: Open Bootstrap scene in Maniac/Bootstrap
- Step 5: You need to create some scriptable objects for Bootstrap script
- Step 6: Just follow these. You'll be fine.
- Step 7: After followed 4 steps. You will have 4 scriptable object which located at Assets/Resources/
-
Step 8: Put all those scriptable objects into Bootstrap.
-
Step 9: Run the Scene. If there is no error. You have completed implemented Maniac Framework into your project.
- Create your own scriptable object in second. (I'll prefer to call it xxxConfig)
- All configs(and their scripts) will be stored at Assets/Recources/DatabaseConfigs
- You can custom any data of any kind into your script and edit it in editor.
- You can get it any where during runtime using example like this.
- Make some UI Layers. This will help you later when you need some UIs to always be on top of some others
- Create your new UI.
- Choose your desired transition, layer, basic setting
- Show and Close UI example
- There are more methods in BaseUI.cs class. Take a look at it.
- Make a class which store data that need to be saved , and inherit from ProfileRecord
- You can check your saved files here !
- Create any prefab that you want to clone, and clone it like example
- Notice
- After Changing Scene to Scene, you need to reset all of the spawner
- Create languages that you want to have in your project
- Create Language Item for any text that you want to be localized.
- Open Language Table and edit the language item that you just created
- You can make a TMP_Text, automatically change to other language using LanguageText component. Remember to Add the LanguageItem for it :P
- Sometime during runtime, you may need to use the LanguageItem in script. Here is how to do it.
- Small Tips. Use "_" to make LanguageItem goes into its own section
- Step by Step
- Create new Audio Info , Add AudioClip into variations
- During runtime when you need to play that sound. This is how to do it in script

























