Shadowing
Member
I'm trying to do this below
This throws a null exception though.
Code:
m_AttributeManager.Attributes = new Attribute[4];
Attribute[] Attributes = m_AttributeManager.Attributes;
m_AttributeManager.Attributes[0].Name = "Health";
m_AttributeManager.Attributes[1].Name = "Shield";
m_AttributeManager.Attributes[2].Name = "Stamina";
m_AttributeManager.Attributes[3].Name = "Provisions";
m_CharacterHealth.ShieldAttributeName = m_AttributeManager.Attributes[1].Name;
foreach(Attribute Att in Attributes) {
Att.AutoUpdateValueType = Attribute.AutoUpdateValue.Increase;
}
This throws a null exception though.
Code:
m_AttributeManager.Attributes[0]