C# Class Enemy, Castle-Bashers

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

Public Properties

Property Type Description
agroRange float
attackRange float
attackShakesScreen bool
attackSound AudioClip
attack_CD float
classification Type
experienceAmount int

Protected Properties

Property Type Description
attackTimer float
camera CameraFollow
isAttacking bool

Public Methods

Method Description
Act ( Type, t ) : void
Awake ( ) : void
GetInvincible ( ) : bool
GetTarget ( ) : GameObject
Move ( Vector3 velocity, float force = 1 ) : void
MoveToDir ( Vector3 vDirection, float force = 1 ) : void
SetTarget ( GameObject tar ) : void
Start ( ) : void
Update ( ) : void
getCanMove ( ) : bool
setInvTime ( float t ) : void
setIsAttacking ( bool b ) : void
updateMove ( Vector3 velocity ) : void

Method Details

Act() public method

public Act ( Type, t ) : void
t Type,
return void

Awake() public method

public Awake ( ) : void
return void

GetInvincible() public method

public GetInvincible ( ) : bool
return bool

GetTarget() public method

public GetTarget ( ) : GameObject
return GameObject

Move() public method

public Move ( Vector3 velocity, float force = 1 ) : void
velocity Vector3
force float
return void

MoveToDir() public method

public MoveToDir ( Vector3 vDirection, float force = 1 ) : void
vDirection Vector3
force float
return void

SetTarget() public method

public SetTarget ( GameObject tar ) : void
tar GameObject
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

getCanMove() public method

public getCanMove ( ) : bool
return bool

setInvTime() public method

public setInvTime ( float t ) : void
t float
return void

setIsAttacking() public method

public setIsAttacking ( bool b ) : void
b bool
return void

updateMove() public method

public updateMove ( Vector3 velocity ) : void
velocity Vector3
return void

Property Details

agroRange public_oe property

public float agroRange
return float

attackRange public_oe property

public float attackRange
return float

attackShakesScreen public_oe property

public bool attackShakesScreen
return bool

attackSound public_oe property

public AudioClip attackSound
return AudioClip

attackTimer protected_oe property

protected float attackTimer
return float

attack_CD public_oe property

public float attack_CD
return float

camera protected_oe property

protected CameraFollow camera
return CameraFollow

classification public_oe property

public Type classification
return Type

experienceAmount public_oe property

public int experienceAmount
return int

isAttacking protected_oe property

protected bool isAttacking
return bool