RPGlite Starter Kit  1.0.0
Starting RPG projects made easy.
Loading...
Searching...
No Matches
RPGlite.Villager Class Reference
Inheritance diagram for RPGlite.Villager:
[legend]

Public Attributes

Collider2D walkArea
 
float walkWaitTime = 3.0f
 
float walkWaitTimeMaxVariation = 3.0f
 
float walkWaitTimeMaxVariationIndividual = 1.5f
 
- Public Attributes inherited from RPGlite.Character
Color hairColor = Color.white
 
int skinNr
 
int spriteNr
 
int outfitNr
 
int hairNr
 
int hatNr
 
bool displayRandomCosmetics = false
 
List< Color > possibleRandomHairColors = new List<Color>()
 

Additional Inherited Members

- Public Member Functions inherited from RPGlite.NPC
void MoveUnits (Vector2 units)
 
void MoveTo (Vector2 position)
 
- Protected Member Functions inherited from RPGlite.NPC
new void Update ()
 
- Protected Member Functions inherited from RPGlite.Character
virtual void Initialize ()
 
void Update ()
 
void LateUpdate ()
 
virtual void SetZIndex ()
 
void Move (bool animate=true)
 
void SkinChoice ()
 
void OutfitChoice ()
 
void HairChoice ()
 
void HatChoice ()
 
void UpdateCosmetics ()
 
IEnumerator DisplayRandomCosmetics ()
 
- Protected Attributes inherited from RPGlite.Character
float speed = 5.0f
 
float sprintSpeedMultiplier = 2.0f
 
Animator animator
 
ArtLibrary artLibrary
 
SpriteRenderer spriteRenderer
 
Vector2 lastDirection
 
IInteractable interactable
 
Vector2 velocity
 
bool sprinting
 
SpriteRenderer outfitRenderer
 
SpriteRenderer hairRenderer
 
SpriteRenderer hatRenderer
 

Member Data Documentation

◆ walkArea

Collider2D RPGlite.Villager.walkArea

◆ walkWaitTime

float RPGlite.Villager.walkWaitTime = 3.0f

◆ walkWaitTimeMaxVariation

float RPGlite.Villager.walkWaitTimeMaxVariation = 3.0f

◆ walkWaitTimeMaxVariationIndividual

float RPGlite.Villager.walkWaitTimeMaxVariationIndividual = 1.5f

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