public void Update() { if (Personnage == null) throw new NullReferenceException("Aucun personnage n'est assigné à ce comportement !"); ZonePrincipale = Personnage.ZonePrincipale; ZoneActuelle = Personnage.ZoneActuelle; EtatPersonnage = Personnage.Etat; }
public void Update() { if (Personnage == null) { throw new NullReferenceException("Aucun personnage n'est assigné à ce comportement !"); } ZonePrincipale = Personnage.ZonePrincipale; ZoneActuelle = Personnage.ZoneActuelle; EtatPersonnage = Personnage.Etat; }