C# Class SkillBar, CSharpGameFramework

Inheritance: MonoBehaviour
Show file Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Properties

Property Type Description
onDestroy FunOnDestroy
onSelectSkill SelectSkillFun
panelSkill GameObject
prefabSkillIcon GameObject

Public Methods

Method Description
AddSkill ( int objID, int skillID, int icon, float cooldownTime, bool canSelect = true ) : SkillInfo,
Clear ( ) : void
GetSkillByID ( int objID ) : SkillInfo,
GetSkillByIndex ( int index ) : SkillInfo,
GetSkillCount ( ) : int
OnDestroy ( ) : void
RemoveAllSkills ( ) : void
RemoveSkill ( int objID ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Method Description
RefreshSkillPosition ( ) : void

Method Details

AddSkill() public method

public AddSkill ( int objID, int skillID, int icon, float cooldownTime, bool canSelect = true ) : SkillInfo,
objID int
skillID int
icon int
cooldownTime float
canSelect bool
return SkillInfo,

Clear() public method

public Clear ( ) : void
return void

GetSkillByID() public method

public GetSkillByID ( int objID ) : SkillInfo,
objID int
return SkillInfo,

GetSkillByIndex() public method

public GetSkillByIndex ( int index ) : SkillInfo,
index int
return SkillInfo,

GetSkillCount() public method

public GetSkillCount ( ) : int
return int

OnDestroy() public method

public OnDestroy ( ) : void
return void

RemoveAllSkills() public method

public RemoveAllSkills ( ) : void
return void

RemoveSkill() public method

public RemoveSkill ( int objID ) : void
objID int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

onDestroy public property

public FunOnDestroy onDestroy
return FunOnDestroy

onSelectSkill public property

public SelectSkillFun onSelectSkill
return SelectSkillFun

panelSkill public property

public GameObject panelSkill
return GameObject

prefabSkillIcon public property

public GameObject prefabSkillIcon
return GameObject