protected void Select(StatoController stato) { if (this._stateTemp == null && this.IsAValidFirst(stato)) { this._stateTemp = stato; this._stateTemp.Toggle(true); return; } if (_stateTemp != null) { if (this.IsAValidSecond(stato)) { stato.Toggle(true); if (EndSelection != null) { EndSelection(this._stateTemp, stato); } this._stateTemp = null; } else if (this.IsAValidFirst(stato)) { this._stateTemp.Toggle(false); this._stateTemp = stato; this._stateTemp.Toggle(true); } } }
private void removeSelection() { _statoDifesa.Toggle(false); _statoAttacco.Toggle(false); _statoAttacco = null; _statoDifesa = null; MainManager.GetInstance().StateClickEnabled = true; }
private void removeSelection() { _statoFrom.Toggle(false); _statoTo.Toggle(false); _statoFrom = null; _statoTo = null; MainManager.GetInstance().StateClickEnabled = true; }