//methods for buttons Ok/Cancel public void OnConfirmPlace() { if (CanPlace) { CanPlace = false; ActiveItem.SetPlayerName(Managers.Session.GetPlayerName()); int NewID = ItemManager.AddItemToPool(ActiveItem, new Vector2(activeGrid.X, activeGrid.Z), tempRotation); ActiveItem = null; MixGrids(NewID); DeleteActivePlates(); SetEnableButtons(false); } }