Exemple #1
0
 private void ShowKillUnitNotice(KillDesType type, int killerIconId, int beKillerIconId, bool isSameSide)
 {
     SetBgColor(isSameSide);
     desText.text = GetStrByType(type);
     SetIconImage(killerHead, killerIconId);
     SetIconImage(beKillerHead, beKillerIconId);
     noticeRoot.gameObject.SetActive(true);
     isShowingNotice = true;
     showingTime     = 0;
 }
Exemple #2
0
        private string GetStrByType(KillDesType type)
        {
            switch (type)
            {
            case KillDesType.None:
            {
                return("");
            }

            case KillDesType.Kill:
            {
                return("击杀");
            }

            default:
            {
                return("击杀");
            }
            }
        }