Пример #1
0
    public void CreateBuilding(GameObject prefab, HexCell cell)
    {
        GameObject    g        = Instantiate(prefab, cell.transform.position, Quaternion.identity);
        Building_Base building = g.GetComponent <Building_Base>();

        building.OnCreated(cell, this);
    }
Пример #2
0
 public void BuildingDestroy(Building_Base building)
 {
     Buildings.Remove(building);
 }