C# Class Skill, Castle-Bashers

显示文件 Open project: DevelopersGuild/Castle-Bashers Class Usage Examples

Public Properties

Property Type Description
augment Augment
skillType Type
useSkillAudio AudioClip
value float

Protected Properties

Property Type Description
coolDown float
coolDownTimer float
level int
manaCost int
price int

Public Methods

Method Description
GetCoolDown ( ) : float
GetCoolDownTimer ( ) : float
GetDiscription ( ) : string
GetLevel ( ) : int
GetManaCost ( ) : int
GetPrice ( ) : int
GetSkillIcon ( ) : Sprite
GetSkillLevel ( ) : SkillLevel
GetSkillName ( ) : string
SetBaseValues ( float coolDown, int price, int manaCost, string skillName, SkillLevel skillLevel, string discription = null ) : void
SetCoolDown ( float value ) : void
SetSkillAudioClip ( AudioClip audio ) : void
SetSkillIcon ( Sprite icon ) : void
UseSkill ( GameObject caller, GameObject target = null, System optionalParameters = null ) : void
addLevel ( ) : void

Protected Methods

Method Description
Start ( ) : void
Update ( ) : void

Method Details

GetCoolDown() public method

public GetCoolDown ( ) : float
return float

GetCoolDownTimer() public method

public GetCoolDownTimer ( ) : float
return float

GetDiscription() public method

public GetDiscription ( ) : string
return string

GetLevel() public method

public GetLevel ( ) : int
return int

GetManaCost() public method

public GetManaCost ( ) : int
return int

GetPrice() public method

public GetPrice ( ) : int
return int

GetSkillIcon() public method

public GetSkillIcon ( ) : Sprite
return Sprite

GetSkillLevel() public method

public GetSkillLevel ( ) : SkillLevel
return SkillLevel

GetSkillName() public method

public GetSkillName ( ) : string
return string

SetBaseValues() public method

public SetBaseValues ( float coolDown, int price, int manaCost, string skillName, SkillLevel skillLevel, string discription = null ) : void
coolDown float
price int
manaCost int
skillName string
skillLevel SkillLevel
discription string
return void

SetCoolDown() public method

public SetCoolDown ( float value ) : void
value float
return void

SetSkillAudioClip() public method

public SetSkillAudioClip ( AudioClip audio ) : void
audio AudioClip
return void

SetSkillIcon() public method

public SetSkillIcon ( Sprite icon ) : void
icon Sprite
return void

Start() protected method

protected Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

UseSkill() public method

public UseSkill ( GameObject caller, GameObject target = null, System optionalParameters = null ) : void
caller GameObject
target GameObject
optionalParameters System
return void

addLevel() public method

public addLevel ( ) : void
return void

Property Details

augment public_oe property

public Augment augment
return Augment

coolDown protected_oe property

protected float coolDown
return float

coolDownTimer protected_oe property

protected float coolDownTimer
return float

level protected_oe property

protected int level
return int

manaCost protected_oe property

protected int manaCost
return int

price protected_oe property

protected int price
return int

skillType public_oe property

public Type skillType
return Type

useSkillAudio public_oe property

public AudioClip useSkillAudio
return AudioClip

value public_oe property

public float value
return float