Ejemplo n.º 1
0
 /// <summary>
 /// 设置数据
 /// </summary>
 public void SetData(CreatureInfoBean creatureInfo)
 {
     this.creatureInfo        = creatureInfo;
     creatureData             = new CreatureBean();
     creatureData.maxLife     = creatureInfo.life;
     creatureData.currentLife = creatureInfo.life;
 }
Ejemplo n.º 2
0
    /// <summary>
    /// 根据属性获取物体跳跃力度
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    public long getCreatureJumpEfforts(CreatureBean data)
    {
        long jumpEfforts = 5;

        return(jumpEfforts);
    }
Ejemplo n.º 3
0
    /// <summary>
    /// 根据属性获取物体转身速率
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    public float getCreatureRotationRate(CreatureBean data)
    {
        float rotationRate = 0.1f;

        return(rotationRate);
    }
Ejemplo n.º 4
0
    /// <summary>
    /// 根据属性获取物体移动速度
    /// </summary>
    /// <param name="data"></param>
    /// <returns></returns>
    public long getCreatureMoveSpeed(CreatureBean data)
    {
        long moveSpeed = 5;

        return(moveSpeed);
    }