Beispiel #1
0
        public override void BuildingUpdate()
        {
            if (Input.GetMouseButton(0) && !InputManager.ToggleSimulationKey())
            {
                return;
            }
            if (BlockMapper.CurrentInstance)
            {
                return;
            }
            bool close = false;

            if (missingSizeSave)
            {
                missingSizeSave = false;
                BlockMapper.OnEditField(Behaviour, size);
                close = true;
            }
            if (missingCorrSave)
            {
                missingCorrSave = false;
                BlockMapper.OnEditField(Behaviour, correction);
                close = true;
            }
            if (close)
            {
                BlockMapper.Close();
            }
        }
Beispiel #2
0
        protected override void BuildingUpdate()
        {
            foreach (var action in actions)
            {
                action.Update();
            }

            if (configuring)
            {
                if (BlockMapper.CurrentInstance != null)
                {
                    BlockMapper.Close();
                    AddPiece.keyMapMode = true;
                }
            }
        }