public static void InvokeChangedKeyPart(KeyPartType part) { if (OnChangedKeyPart != null) { OnChangedKeyPart(part); } }
public KeyPart(KeyPartType part) { this.part = part; material = (MaterialType)UnityEngine.Random.Range(0, 3); style = (KeyStyleType)UnityEngine.Random.Range(0, 3); }
public KeyPart(KeyPartType part, MaterialType material, KeyStyleType style) { this.part = part; this.material = material; this.style = style; }
public KeyPart(KeyPartType part, MaterialType material) { this.part = part; this.material = material; style = Util.GetRandomEnum <KeyStyleType> (); }