| | |
| | | { |
| | | var behaviour = m_GemBehaviours[i]; |
| | | var active = gemInfo.activeStates.ContainsKey(i) ? gemInfo.activeStates[i] : false; |
| | | var gem = gemInfo.gems.ContainsKey(i) ? gemInfo.gems[i] : 0; |
| | | var gem = (gemInfo.gems != null && gemInfo.gems.ContainsKey(i)) ? gemInfo.gems[i] : 0; |
| | | behaviour.Display(active, gem); |
| | | } |
| | | } |
| | |
| | | for (int i = 0; i < properties.Count; i++) |
| | | { |
| | | var property = properties[i]; |
| | | lines[i] =PlayerPropertyConfig.GetFullDescription(property.x, property.y); |
| | | lines[i] = PlayerPropertyConfig.GetFullDescription(property.x, property.y); |
| | | } |
| | | |
| | | propertyBehaviour.text = string.Join("\r\n", lines); |