SOulLop
2017-09-26 15:29:37 0 举报
SOulLopSOulLopSOulLopSOulLop
作者其他创作
大纲/内容
Weapon
MeleeWeapon
man:GameObjectmakedmg:MakeDamageFireRatenextFirechopSpeedattackDamagezHouYaozQianPi
Start()CheckAttackRateAndAttack()Chop()RotateFromAtoB()
AI
layerMask_Buildingplayer:GameObjectenemy:Enemyvr
Start()CheckPlayerDistanceAndSetFSM()Wait()iWait()TurnDirectionIfObstacle()StradyMove()LookAround()MoveToPlayer()GunRotateToAimAtPlayer
Tool
MakeDamage
attackDamage
Player
inputDriver:InputDriveranimator:Animatorweapon:GameObjecttWeapon:TransformweaponScript:MeleeWeapongetdmg:GetDamage
Start()Update()FixedUpdate()
Enemy
player:GameObjectai:AIweapon:GameObjecttWeapon:TransformweaponScript:GUn
Start()Update()
InputDriver
directionVectoroldDirectionVectorplayer
Start()GetInputToMove()RotateGunWithLeftStick()
GetDamage
glObject:GeneralLivingObject
Start()OnCollisionEnter()CheckDiedAndHandleDeath()GameOver()HandleEnemyDied()
EnemyAI
ai:AIStates:enumParentStates:enumfsm:StateMachineparentfsm:StateMachine
GeneratedFSMCode
uml不要严格,微软不使用uml,相应的,使用简化的UML。obj:标识符1.只有标识符2.引用类型,enum,class写类型3.函数写参数4.次序不调整,你调整不好的
Gun
shot:GameObjectmuzzle:GameObjectfireRate:floatnextFire:floatshotSpeed:floatattackDamage:int
Start()Shoot()ShootInTheGunDirection()
GeneralLivingObject
speedhealthDirection:enumflagfsm:StateMachine
Shot
makedmg:Makedamage
Start()OnCollisionEnter()
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容