C# Class GenericGem, angrygoats

Purpose: A class to control the generic behaviour of all gems and their interations
Inheritance: MonoBehaviour
Show 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 property

protected Animator anim
return Animator

boltMaterial public property

public Material boltMaterial
return Material

cost public property

public int cost
return int

damage public property

public int damage
return int

duration public property

public int duration
return int

endTime protected property

protected float endTime
return float

isCurrent public property

public bool isCurrent
return bool

player protected property

protected GameObject player
return GameObject

playerControl protected property

protected PlayerControl, playerControl
return PlayerControl,

shot protected property

protected GameObject shot
return GameObject

shotSpawn protected property

protected Transform shotSpawn
return Transform

staffMaterial public property

public Material staffMaterial
return Material

staffParticles public property

public Material staffParticles
return Material