public void AllDrawCard(EffetCarte.CarteType type) { switch (type) { case EffetCarte.CarteType.Chance: cartes.DrawnChance(); break; case EffetCarte.CarteType.Communauté: cartes.DrawnComu(); break; } }
public void DrawCard(EffetCarte.CarteType type) { GetComponent <PhotonView>().RPC("AllDrawCard", PhotonTargets.All, type); }