Beispiel #1
0
 void Update()
 {
     if (!estAllume && jeu.ActifPeutAtteindre(X, Y))
     {
         Allumer();
     }
     if (estAllume && !jeu.ActifPeutAtteindre(X, Y))
     {
         Eteindre();
     }
 }