C# Class PlayerLogic, wepwep

Inheritance: MonoBehaviour
Datei anzeigen Open project: encephalopathy/wepwep Class Usage Examples

Public Properties

Property Type Description
cooldownTime float
currentEnergy float
currentHealth int
energyBarSlider Slider,
energyText Text,
explosion GameObject
healthBarSlider Slider,
healthText Text,
invert int
isFiring bool
isPlayerInvincible bool
maxEnergy float
maxHealth int
maxX float
maxZ float
movementSpeed float
score int

Public Methods

Method Description
OnCollisionEnter ( Collision theCollision ) : void
OnTriggerEnter ( Collider other ) : void
Start ( ) : void
Update ( ) : void
canFire ( int cost, bool continuousFire ) : bool
doDamage ( int amount ) : void

Method Details

OnCollisionEnter() public method

public OnCollisionEnter ( Collision theCollision ) : void
theCollision Collision
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider other ) : void
other Collider
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

canFire() public method

public canFire ( int cost, bool continuousFire ) : bool
cost int
continuousFire bool
return bool

doDamage() public method

public doDamage ( int amount ) : void
amount int
return void

Property Details

cooldownTime public_oe property

public float cooldownTime
return float

currentEnergy public_oe property

public float currentEnergy
return float

currentHealth public_oe property

public int currentHealth
return int

energyBarSlider public_oe property

public Slider, energyBarSlider
return Slider,

energyText public_oe property

public Text, energyText
return Text,

explosion public_oe property

public GameObject explosion
return GameObject

healthBarSlider public_oe property

public Slider, healthBarSlider
return Slider,

healthText public_oe property

public Text, healthText
return Text,

invert public_oe property

public int invert
return int

isFiring public_oe property

public bool isFiring
return bool

isPlayerInvincible public_oe property

public bool isPlayerInvincible
return bool

maxEnergy public_oe property

public float maxEnergy
return float

maxHealth public_oe property

public int maxHealth
return int

maxX public_oe property

public float maxX
return float

maxZ public_oe property

public float maxZ
return float

movementSpeed public_oe property

public float movementSpeed
return float

score public_oe property

public int score
return int