/// <summary> /// 设置数据 /// </summary> public void SetData(CreatureInfoBean creatureInfo) { this.creatureInfo = creatureInfo; creatureData = new CreatureBean(); creatureData.maxLife = creatureInfo.life; creatureData.currentLife = creatureInfo.life; }
/// <summary> /// 根据属性获取物体跳跃力度 /// </summary> /// <param name="data"></param> /// <returns></returns> public long getCreatureJumpEfforts(CreatureBean data) { long jumpEfforts = 5; return(jumpEfforts); }
/// <summary> /// 根据属性获取物体转身速率 /// </summary> /// <param name="data"></param> /// <returns></returns> public float getCreatureRotationRate(CreatureBean data) { float rotationRate = 0.1f; return(rotationRate); }
/// <summary> /// 根据属性获取物体移动速度 /// </summary> /// <param name="data"></param> /// <returns></returns> public long getCreatureMoveSpeed(CreatureBean data) { long moveSpeed = 5; return(moveSpeed); }