Exemplo n.º 1
0
    private void _Check()
    {
        if (Limit > _CurrentCount)
        {
            var requestCount = Limit - _CurrentCount;
            for (int i = 0; i < requestCount; ++i)
            {
                _Player.RequestFish().OnValue += FishPool_OnValue;
            }

            _CurrentCount = Limit;
        }
    }
Exemplo n.º 2
0
    void PlayerProvider_Supply(VGame.Project.FishHunter.Common.GPI.IPlayer obj)
    {
        _Player = obj;
        _Player.DeathFishEvent += _Player_DeathFishEvent;

        _Player.RequestFish().OnValue += (id) =>
        {
            if (_Destroyed == false)
            {
                _Initial(id);
            }
        };
    }