Ejemplo n.º 1
0
        protected void HideEntity(int serialId)
        {
            if (entityLoader == null)
            {
                return;
            }

            entityLoader.HideEntity(serialId);
        }
        public void HidePreviewTower()
        {
            if (uiMaskFormSerialId != null)
            {
                GameEntry.UI.CloseUIForm((int)uiMaskFormSerialId);
            }

            GameEntry.Event.Fire(this, HidePreviewTowerEventArgs.Create(previewTowerData));

            if (previewTowerEntity != null)
            {
                entityLoader.HideEntity(previewTowerEntity);
            }

            uiMaskFormSerialId = null;

            previewTowerEntity = null;
            previewTowerData   = null;

            isBuilding = false;
        }