C# Class GenericGem, angrygoats

Purpose: A class to control the generic behaviour of all gems and their interations
Inheritance: MonoBehaviour
Mostra file Open project: dulb640/angrygoats Class Usage Examples

Public Properties

Property Type Description
boltMaterial Material
cost int
damage int
duration int
isCurrent bool
staffMaterial Material
staffParticles Material

Protected Properties

Property Type Description
anim Animator
endTime float
player GameObject
playerControl PlayerControl,
shot GameObject
shotSpawn Transform

Public Methods

Method Description
Start ( ) : void
castAnimation ( ) : void
onEnemyHit ( GameObject other ) : void

Protected Methods

Method Description
Update ( ) : void
doEffect ( ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() protected method

protected Update ( ) : void
return void

castAnimation() public method

public castAnimation ( ) : void
return void

doEffect() protected method

protected doEffect ( ) : void
return void

onEnemyHit() public method

public onEnemyHit ( GameObject other ) : void
other GameObject
return void

Property Details

anim protected_oe property

protected Animator anim
return Animator

boltMaterial public_oe property

public Material boltMaterial
return Material

cost public_oe property

public int cost
return int

damage public_oe property

public int damage
return int

duration public_oe property

public int duration
return int

endTime protected_oe property

protected float endTime
return float

isCurrent public_oe property

public bool isCurrent
return bool

player protected_oe property

protected GameObject player
return GameObject

playerControl protected_oe property

protected PlayerControl, playerControl
return PlayerControl,

shot protected_oe property

protected GameObject shot
return GameObject

shotSpawn protected_oe property

protected Transform shotSpawn
return Transform

staffMaterial public_oe property

public Material staffMaterial
return Material

staffParticles public_oe property

public Material staffParticles
return Material