Beispiel #1
0
 public void ColorChange(ColorView colorView, float r, float g, float b)
 {
     if (colorView == colorSkin)
     {
         characterBodyCpt.SetSkin(colorSkin.GetColor());
     }
     else if (colorView == colorHair)
     {
         characterBodyCpt.SetHair(colorHair.GetColor());
     }
     else if (colorView == colorEye)
     {
         characterBodyCpt.SetEye(colorEye.GetColor());
     }
     else if (colorView == colorMouth)
     {
         characterBodyCpt.SetMouth(colorMouth.GetColor());
     }
 }
Beispiel #2
0
 /// <summary>
 /// 设置角色死亡
 /// </summary>
 public virtual void SetCharacterDead()
 {
     //设置角色死亡
     characterMoveCpt.SetAnimStatus(10);
     if (characterBody != null)
     {
         characterBody.SetEye("character_eye_special_dead", new Color(0, 0, 0), false);
         characterBody.transform.DOLocalRotate(new Vector3(0, 0, -90), 0.1f).SetEase(Ease.OutBack);
         characterBody.transform.localPosition = new Vector3(0, 0.3f, 0);
     }
 }