public virtual void Start() { plan = GameObject.FindGameObjectWithTag ("Plans").GetComponent<ListeBatiment> (); ressources = new List<string> (); ressourcesNecessaires = new List<string> (); enChantier = true; manqueRessource = true; etapeConstruction = 0; }
protected override void Start() { base.Start(); plans = GameObject.FindGameObjectWithTag ("Plans").GetComponent<ListeBatiment> (); marches = new List<Transform> (); intentionConstruction = Random.Range(0,plans.nomBatiment.Count-1); boisNecessaire = plans.nbrBoisNecessaire [0]; intention = Intention.CONSTRUIRE; intentionEtape = IntentionEtape.POSERCHANTIER; action = Action.CHERCHER; }