ARPG UML图
2016-05-03 16:11:05 19 举报
Unity3D ARPG游戏玩家角色类图
作者其他创作
大纲/内容
对象
角色基本属性
PlayerAttack
PlayerAttack()
public PlayerState state = PlayerState.ConrolWalk; public AttackState attack_state = AttackState.Idle; public string aniname_idle; public string aniname_now; public string aniname_death;//死亡动画 public float time_normalattack;//普通攻击持续时间 public float rate_normalattack = 0.5f;//攻击速率 public float timer = 0; public float min_distance = 5;//默认攻击最小距离 public float normalattack = 10; //攻击伤害值
类
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
+ operation1(params):returnType- operation2(params)- operation3()
PlayerMove
SimpleMove()//移动PlayerMove()
AttackState
ControlWalkState
enum PlayerState
PlayerDir
PlayerDir()//控制角色的走向
public Vector3 targetPosition = Vector3.zero;//目标(主角要去的)位置 private bool isMoving = false;//表示鼠标是否按下 private PlayerMove playerMove; private PlayerAttack attack;
+GetDrug() //加血或加魔法+ GetCoint()//计算金币数量+GetExp()//获得经验+TakeMP()//获得MP
0 条评论
下一页