A* Pathfinding Project  4.3.2
The A* Pathfinding Project for Unity 3D
RTSWeaponSimpleRanged Class Reference

Public Member Functions

override bool Aim (RTSUnit target)
override void Attack (RTSUnit target)
- Public Member Functions inherited from RTSWeapon
bool InRangeOf (Vector3 point)

Public Attributes

float damage
Transform rotationRootY
float rotationSpeed
AudioClip [] sfx
GameObject sourceEffect
Transform sourceEffectRoot
GameObject targetEffect
float volume = 1f
- Public Attributes inherited from RTSWeapon
float attackDuration
bool canMoveWhileAttacking = false
float cooldown
float range
bool ranged

Additional Inherited Members

- Properties inherited from RTSWeapon
bool isAttacking [get]

Member Function Documentation

◆ Aim()

override bool Aim ( RTSUnit  target)

Reimplemented from RTSWeapon.

◆ Attack()

override void Attack ( RTSUnit  target)

Reimplemented from RTSWeapon.

Member Data Documentation

◆ damage

float damage

◆ rotationRootY

Transform rotationRootY

◆ rotationSpeed

float rotationSpeed

◆ sfx

AudioClip [] sfx

◆ sourceEffect

GameObject sourceEffect

◆ sourceEffectRoot

Transform sourceEffectRoot

◆ targetEffect

GameObject targetEffect

◆ volume

float volume = 1f

The documentation for this class was generated from the following file: