void TransmitName() { if (isLocalPlayer) { CmdProvideNameToServer(netSet.GetCharaInfo().GetPlayerName(), playerType); } //自プレイヤー以外のPlayerの時 else { playerName.SetNameText(syncPlayerName); switch ((CharactorInfo.CHARA)syncPlayerType) { case CharactorInfo.CHARA.TANUKI: nameText.color = new Color(100f / 255f, 255f / 255f, 100f / 255f); break; case CharactorInfo.CHARA.CAT: nameText.color = new Color(255f / 255f, 150f / 255f, 200f / 255f); break; case CharactorInfo.CHARA.FOX: nameText.color = new Color(255f / 255f, 80f / 255f, 0f / 255f); break; case CharactorInfo.CHARA.DOG: nameText.color = new Color(0f / 255f, 170f / 255f, 255f / 255f); break; } } }