Esempio n. 1
0
    public void AskForDeal()
    {
        if (_harbor == null || !_isAtRange)
        {
            return;
        }

        bool done = _harbor.isOpen && _harbor.AskForDeal();

        if (done)
        {
            _harbor.Close();
            HarborWindowManager.instance.SetCloseInfo(_harbor);
        }
        else
        {
            HarborWindowManager.instance.OnRejectDeal();
        }
    }