Basic NPC script for the example scene. More...
Public Member Functions | |
void | Idle () |
void | Wander () |
void | OnWitnessDeed (Rumor rumor) |
Raises the witness deed event. | |
string | GetSummaryText () |
Public Attributes | |
float | powerLevel = 1 |
float | selfPerceivedPowerLevel = 1 |
Public Attributes inherited from PixelCrushers.LoveHate.Example.Mover2D | |
bool | controlMovement = true |
Vector3 | moveToPosition |
Protected Member Functions | |
override void | Start () |
Protected Member Functions inherited from PixelCrushers.LoveHate.Example.Mover2D | |
virtual void | FixedUpdate () |
Properties | |
FactionMember | factionMember [get] |
Additional Inherited Members | |
Protected Attributes inherited from PixelCrushers.LoveHate.Example.Mover2D | |
Rect | cameraRect |
Rigidbody2D | rb |
Basic NPC script for the example scene.
Note that it uses the event system to handle IWitnessDeedEventHandler's OnWitnessDeed() method.
|
inline |
|
inline |
|
inline |
Raises the witness deed event.
rumor | The faction member's subjective evaluation of the deed, which may or may not be added to the faction member's memory based on its perceived importance to the faction member. |
Implements PixelCrushers.LoveHate.IWitnessDeedEventHandler.
|
inlineprotectedvirtual |
Reimplemented from PixelCrushers.LoveHate.Example.Mover2D.
|
inline |
float PixelCrushers.LoveHate.Example.NPC.powerLevel = 1 |
float PixelCrushers.LoveHate.Example.NPC.selfPerceivedPowerLevel = 1 |
|
get |