platformer
Public Member Functions | Public Attributes | List of all members
UnityPlatformer.PlayerStart Class Reference

Create a player at given position More...

Inheritance diagram for UnityPlatformer.PlayerStart:
UnityPlatformer.InstancePrefab

Public Member Functions

override void OnAwake (bool notify=true)
 Instance the prefab, rename and attach it More...
 
- Public Member Functions inherited from UnityPlatformer.InstancePrefab
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...
 
- Public Attributes inherited from UnityPlatformer.InstancePrefab
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...
 

Detailed Description

Create a player at given position

Member Function Documentation

◆ OnAwake()

override void UnityPlatformer.PlayerStart.OnAwake ( bool  notify = true)
inlinevirtual

Instance the prefab, rename and attach it

To be Character must have only one Character and PlatformerInput

Parameters
notifytrue -> SendMessage: OnInstancePrefab

Reimplemented from UnityPlatformer.InstancePrefab.

Member Data Documentation

◆ character

Character UnityPlatformer.PlayerStart.character

Character reference

◆ input

PlatformerInput UnityPlatformer.PlayerStart.input

Input reference

◆ mon

CharacterMonitor UnityPlatformer.PlayerStart.mon

◆ monitor

bool UnityPlatformer.PlayerStart.monitor = false

true: Enable CharacterMonitor if it's found in the Prefab or Create it false: do nothing

◆ setupCameraFollow

bool UnityPlatformer.PlayerStart.setupCameraFollow = true

If you have your own camera, this should be false.


The documentation for this class was generated from the following file: