// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyToCreateBuilding)) { var pos = transform.position; pos.x = (int)pos.x + 0.1f; pos.y = (int)pos.y + 2.1f; Terrain_Manager.CreateBuilding(pos); _cache.Add(new CacheContent() { Location = pos, ObjectType = "Building" }); } }