platformer
|
Create a player at given position More...
Public Member Functions | |
override void | OnAwake (bool notify=true) |
Instance the prefab, rename and attach it More... | |
![]() | |
void | Awake () |
NOTE no virtual on purpose. override OnAwake More... | |
virtual void | RenameInstance (string rootName, int index) |
Rename logic: append counter to the name More... | |
Public Attributes | |
bool | setupCameraFollow = true |
If you have your own camera, this should be false. More... | |
bool | monitor = false |
true: Enable CharacterMonitor if it's found in the Prefab or Create it false: do nothing More... | |
Character | character |
Character reference More... | |
PlatformerInput | input |
Input reference More... | |
CharacterMonitor | mon |
Monitor More... | |
![]() | |
Sprite | placeholder |
Placeholder sprite for editor, to see something More... | |
GameObject | prefab |
Prefab to instance More... | |
bool | attachToRoot = true |
Attach the prefab as a child or at root node. More... | |
GameObject | instance = null |
reference to instanced prefab More... | |
Create a player at given position
|
inlinevirtual |
Instance the prefab, rename and attach it
To be Character must have only one Character and PlatformerInput
notify | true -> SendMessage: OnInstancePrefab |
Reimplemented from UnityPlatformer.InstancePrefab.
PlatformerInput UnityPlatformer.PlayerStart.input |
Input reference
CharacterMonitor UnityPlatformer.PlayerStart.mon |
bool UnityPlatformer.PlayerStart.monitor = false |
true: Enable CharacterMonitor if it's found in the Prefab or Create it false: do nothing
bool UnityPlatformer.PlayerStart.setupCameraFollow = true |
If you have your own camera, this should be false.