public float this[Destructible.ATTRIBUTE name] { set { int ID = getAttributeIndex(name); if (ID < 0) return; Attributes[ID].value = value; } get { int ID = getAttributeIndex(name); if (ID < 0) { Debug.Log("Uh Oh" + name.ToString()); return -1; } return Attributes[ID].value; } }