示例#1
0
 public float GetAttributeValue(D_Attribute attribute)
 {
     if (attributes.ContainsKey(attribute))
     {
         return(attributes[attribute].GetValue());
     }
     return(0f);
 }
示例#2
0
 public bool TryGetAttributeValue(D_Attribute attribute, out float value)
 {
     if (attributes.ContainsKey(attribute))
     {
         value = attributes[attribute].GetValue();
         return(true);
     }
     value = 0f;
     return(false);
 }