Esempio n. 1
0
    /// <summary>
    /// Crée un objet Building et renvoie son script
    /// </summary>
    /// <returns>Script du Building créé</returns>
    public static BuildingScript CreateBuilding()
    {
        BuildingScript building = Instantiate(instance.buildingPreFab, Vector3.zero, Quaternion.identity).GetComponent <BuildingScript>();

        building.Initialize();
        return(building);
    }