Exemplo n.º 1
0
 public void jouer(Batiment batiment)
 {
     appliquerEffet (batiment);
     if (batiment.kase.scriptCase.isVisible) {
         appliquerEffetGraphique (batiment);
     }
 }
 public override void appliquerEffetGraphique(Batiment batiment)
 {
     Case kase = batiment.kase;
     GameObject go = MonoBehaviour.Instantiate (SC_GestionPlanete.instance.particulesProductionRessources);
     go.transform.position = kase.tuile.transform.position;
     SC_particulesProductionRessources script = go.GetComponent<SC_particulesProductionRessources> ();
     script.tempsDeVie = 3;
     script.particules.maxParticles = (int) Math.Round(quantite);
 }
Exemplo n.º 3
0
        public void construire(Batiment b)
        {
            batiment = b;
            b.kase = this;
            GameObject go = (GameObject) MonoBehaviour.Instantiate(b.type.prefab,
                                                                   new Vector3(SC_GestionPlanete.getXofHexagone(coordX,coordZ), 0.0f, SC_GestionPlanete.getYofHexagone(coordX,coordZ)),
                                      Quaternion.identity);
            SC_DataForPrefab script = go.GetComponent<SC_DataForPrefab>();

            go.transform.Rotate(new Vector3(1 * script.rotationX,0,1 * script.rotationZ), Space.World);
            go.transform.Translate (new Vector3(script.decalageEnX,script.decalageEnY,script.decalageEnZ));
            changerTerrain (Terrains.MONTAGNE, false);
            //t.parent = tuile;
        }
 public override void appliquerEffet(Batiment batiment)
 {
     //base.jouer (batiment);
     Colonie.instance.consommer(ressource,quantite);
 }
Exemplo n.º 5
0
 public void jouer(Batiment batiment)
 {
 }
 public void addBatiment(Batiment b)
 {
     batiments.Add(b);
 }
Exemplo n.º 7
0
 public virtual void appliquerEffetGraphique(Batiment batiment)
 {
 }
Exemplo n.º 8
0
 public virtual void appliquerEffet(Batiment batiment)
 {
 }