- added mobile controls and example scenes
To create mobile controls:
a) If present on scene, delete canvas and scenecontroller
b) Click on Tools/Combat Framework/Setup Scene Requirements
c) choose TopDown player
d) check 'mobileUI' checkbox
e) click 'Create'
- removed default player.
- added more flexible control system.
User can now more easily set up its own controls by filling up Inputs class and pass it to player components.
Look at 'StandaloneInputs' and 'MobileInput' for examples.
Now, player control does not use unity's magic functions but must be called from inputs scripts ( see examples )
- created 'initialization scene' system. It purpose is to user can create menu - buttons and assign events on them in unity editor.
Previously, when starting game, player would be spawned on scene and all menu button events should been assigned in runtime from code.
Now, user can assign all events in editor, along with placing player and scene controller on the scene and immediatly load first in game scene.
Usage:
- create initialization scene and place player, create canvas, game controller etc..
- fill up all events, do all setup
- add object with 'Initialization' script on it
- enter name of the first scene and first spawn point
- add persistant objects that will get DontDestroyOnLoad tag ( player, canvas, scene controller )
- before starting game, always start initialization scene first - be it from menu or first scene
I created 3 initailization scene as examples. For third person player, top down player and mobile player.
I think now is much easier to create menus, add, remove, fill up events etc. than creating all those from code when game starts.
Of course, during gameplay, do not return to initialization scene again or multiple players and other persistent object would spawn.
Start initialization scene only once before starting gameplay ( from main menu for instance )
- divided SceneControl features into multiple components for easier management ( MenuHandler, ScreenFade )
. created IPickable interface for pickable object so that 'ItemPicker' can pick them up
- improvements
- bugfixes