public void chargerValeurDeCase()
        {
            XmlDocument doc = new XmlDocument ();
            doc.Load (dataPath + "/ValeursDeCase.xml");
            XmlNodeList nodes = doc.DocumentElement.ChildNodes;
            foreach (XmlNode node in nodes) {
                ValeurDeCase vdc = new ValeurDeCase();
                vdc.nom = node.SelectSingleNode ("Nom").InnerText;

                listeValeursDeCase.Add(vdc);
            }
        }
Ejemplo n.º 2
0
 public void setCouleurSurcase(ValeurDeCase valeurDeCase)
 {
     this.surcase.GetComponent<Renderer>().material.SetColor("_Color", new Color(1,1,1));
 }