Please enable JavaScript.
Coggle requires JavaScript to display documents.
StateMachine, Interact Component, AI_Controller, Player_Controller -…
StateMachine
STATE: MOVEMENT
Movement Component (IMotor)
FollowTarget(Transform target)
Init()
Initialized
MoveToPoint(Vector3 point)
NavMeshAgent Component
STATE: ATTACK
Weapon Component (IDamageDealer)
ContinuousAttack(IDamageable target)
Health Component (IDamageable)
TakeDamage(int damage)
Init()
Initialized
Init()
Initialized
SingleAttack(IDamageable target)
STATE: ACTION
STATE:IDLE
Interact Component
SetFocus(SmartObject obj)
RemoveFocus(SmartObject obj)
Init()
Initialized
AI_Controller
if aggressive
targetInRange
Move
if passive
getsAttacked
Attack
Player_Controller
MouseButton0
if hits target
interact
if opponent
Attack
if item
Pick
Follow
if hits ground
Move
InsertKey
Sit