C# Class RosePlayer, UnityRose

Inheritance: IPointerClickHandler
Show file Open project: osROSE/UnityRose Class Usage Examples

Public Properties

Property Type Description
charModel UnityRose.CharModel
player GameObject

Public Methods

Method Description
Destroy ( ) : void
OnPointerClick ( PointerEventData eventData ) : void
RosePlayer ( ) : System
RosePlayer ( CharModel charModel ) : System
RosePlayer ( GenderType gender ) : System
RosePlayer ( Vector3 position ) : System
changeGender ( GenderType gender ) : void
changeName ( string name ) : void
equip ( BodyPartType bodyPart, int id, bool changeId = true ) : void
setAnimationState ( States state ) : void

Private Methods

Method Description
LoadObject ( BodyPartType bodyPart, int id ) : Bounds
LoadPart ( BodyPartType bodyPart, ZSC dummy, string zmsPath, string texPath ) : Bounds
LoadPlayer ( CharModel charModel ) : void
LoadPlayerSkeleton ( CharModel charModel ) : void
LoadPlayerSkeleton ( GenderType gender, WeaponType, weapType, RigType rig, int weapon, int body, int arms, int foot, int hair, int face, int back, int cap, int shield ) : void

Method Details

Destroy() public method

public Destroy ( ) : void
return void

OnPointerClick() public method

public OnPointerClick ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

RosePlayer() public method

public RosePlayer ( ) : System
return System

RosePlayer() public method

public RosePlayer ( CharModel charModel ) : System
charModel UnityRose.CharModel
return System

RosePlayer() public method

public RosePlayer ( GenderType gender ) : System
gender GenderType
return System

RosePlayer() public method

public RosePlayer ( Vector3 position ) : System
position Vector3
return System

changeGender() public method

public changeGender ( GenderType gender ) : void
gender GenderType
return void

changeName() public method

public changeName ( string name ) : void
name string
return void

equip() public method

public equip ( BodyPartType bodyPart, int id, bool changeId = true ) : void
bodyPart BodyPartType
id int
changeId bool
return void

setAnimationState() public method

public setAnimationState ( States state ) : void
state States
return void

Property Details

charModel public property

public CharModel,UnityRose charModel
return UnityRose.CharModel

player public property

public GameObject player
return GameObject