private void RandomAttr() { int attrCount = Enum.GetValues(typeof(PlayerAttrName)).Length; for (int i = 0; i < attrCount; i++) { int val = UnityEngine.Random.Range(palyerRader.GetAttrMinValue((AttrPos)i), palyerRader.GetAttrMaxValue((AttrPos)i)); palyerRader.SetAttrAmount((AttrPos)i, val); } }