コード例 #1
0
    public void AddFurniture(string id, Vector3 position = default(Vector3), Quaternion rotation = default(Quaternion), Vector3 scale = default(Vector3), float thickness = 1f)
    {
        Commande commande = new AddFurniture(this, furnitureFolder, sensorsFolder, wallsFolder, id, position, rotation, scale, thickness);

        commande.Do();
        commandeList.Push(commande);
        furnitureList.Add((commande as AddFurniture).getFurnitureRecepteur());
    }
コード例 #2
0
    public void LoadFurniture(string jsonTextLine)
    {
        Furniture newFurniture = JsonUtility.FromJson <Furniture>(jsonTextLine);
        Commande  commande     = new AddFurniture(this, furnitureFolder, sensorsFolder, wallsFolder, newFurniture.getType(), newFurniture.getPosition(), newFurniture.getRotation(), newFurniture.getScale(), newFurniture.thickness);

        commande.Do();
        furnitureList.Add((commande as AddFurniture).getFurnitureRecepteur());
    }