C# Class BotAI, source

Inheritance: MonoBehaviour
ファイルを表示 Open project: unityosgt/source Class Usage Examples

Public Properties

Property Type Description
IdleAnimation UnityEngine.AnimationClip
anim Animation
animationSpeed float
botState BotState
defaultHealth int
distanceToPlayer float
endOfPathEffect GameObject
health int
myPhotonView PhotonView,
sleepVelocity float

Protected Properties

Property Type Description
lastTarget Vector3

Public Methods

Method Description
Attack ( ) : void
Damage ( ) : void
GetFeetPosition ( ) : Vector3
OnTargetReached ( ) : void
Start ( ) : void

Protected Methods

Method Description
FixedUpdate ( ) : void

Private Methods

Method Description
Die ( ) : IEnumerator
DoAttack ( ) : IEnumerator
DoDamage ( ) : IEnumerator

Method Details

Attack() public method

public Attack ( ) : void
return void

Damage() public method

public Damage ( ) : void
return void

FixedUpdate() protected method

protected FixedUpdate ( ) : void
return void

GetFeetPosition() public method

public GetFeetPosition ( ) : Vector3
return Vector3

OnTargetReached() public method

public OnTargetReached ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Property Details

IdleAnimation public_oe property

public AnimationClip,UnityEngine IdleAnimation
return UnityEngine.AnimationClip

anim public_oe property

public Animation anim
return Animation

animationSpeed public_oe property

public float animationSpeed
return float

botState public_oe property

public BotState botState
return BotState

defaultHealth public_oe property

public int defaultHealth
return int

distanceToPlayer public_oe property

public float distanceToPlayer
return float

endOfPathEffect public_oe property

public GameObject endOfPathEffect
return GameObject

health public_oe property

public int health
return int

lastTarget protected_oe property

protected Vector3 lastTarget
return Vector3

myPhotonView public_oe property

public PhotonView, myPhotonView
return PhotonView,

sleepVelocity public_oe property

public float sleepVelocity
return float