public virtual void SetCharacterAttr(ICharacterAttr CharacterAttr) { m_Attribute = CharacterAttr; m_Attribute.InitAttr(); m_NavmeshAgent.speed = m_Attribute.GetMoveSpeed(); m_Name = m_Attribute.GetAttrName(); }
//public virtual void SetCharacterAI(ICharacter ) //设置角色属性 public virtual void SetCharacterAttr(ICharacterAttr _characterAttr) { //设置 attribute = _characterAttr; attribute.InitAttr(); //设置移动速度 navAgent.speed = attribute.GetMoveSpeed(); //名称 name = attribute.GetAttrName(); }
// 设定角色数值 public virtual void SetCharacterAttr(ICharacterAttr CharacterAttr) { // 设定 m_Attribute = CharacterAttr; m_Attribute.InitAttr(); // 设定移动速度 m_NavAgent.speed = m_Attribute.GetMoveSpeed(); // 名称 m_Name = m_Attribute.GetAttrName(); }
// 設定角色數值 public virtual void SetCharacterAttr(ICharacterAttr CharacterAttr) { // 設定 m_Attribute = CharacterAttr; m_Attribute.InitAttr(); // 設定移動速度 m_NavAgent.speed = m_Attribute.GetMoveSpeed(); //Debug.Log ("設定移動速度:"+m_NavAgent.speed); // 名稱 m_Name = m_Attribute.GetAttrName(); }
protected ICharacterAttr m_Attribute = null; //角色属性 //设置角色属性 public virtual void SetCharacterAttr(ICharacterAttr CharacterAttr) { //设置 m_Attribute = CharacterAttr; m_Attribute.InitAttr(); //设置移动速度 m_NavAgent.speed = m_Attribute.GetMoveSpeed(); //Debug.Log("设置移动速度:"+m_NavAgent.speed); //名字 m_Name = m_Attribute.GetAttrName(); }
/// <summary> /// 设置角色数值 /// </summary> /// <param name="CharacterAttr"></param> public virtual void SetCharacterAttr(ICharacterAttr attr) { m_Attribute = attr; m_Attribute.InitAttr(); }
// 設定角色數值 public virtual void SetCharacterAttr( ICharacterAttr CharacterAttr) { // 設定 m_Attribute = CharacterAttr; m_Attribute.InitAttr (); // 設定移動速度 m_NavAgent.speed = m_Attribute.GetMoveSpeed(); //Debug.Log ("設定移動速度:"+m_NavAgent.speed); // 名稱 m_Name = m_Attribute.GetAttrName(); }