public void SetupChannel(int playerID, ChannelManager cm)
    {
        var channel = new GrenadesChannel(this, new TrivialStrategy(), 1 / 30f);

        _channels[playerID] = channel;
        cm.RegisterChannel((int)RegisteredChannels.GrenadeStatesChannel, channel);
        channel.StartSending();
    }
예제 #2
0
 private void Start()
 {
     _channel = new GrenadesChannel(null, new TrivialStrategy(), 1 / 30f);
     ClientConnectionManager.Instance.ChannelManager.RegisterChannel((int)RegisteredChannels.GrenadeStatesChannel, _channel);
     _channel.Interpolator.StartInterpolating();
 }