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