Untitled

mail@pastecode.io avatar
unknown
csharp
2 months ago
304 B
1
Indexable
Never
public class SomeComponent : MonoBehaviour
{
    public NetEventChannel LocalNetChannel;

    public void Start()
    {
        NetChannel.BindTo<ConnectionMessage>(OnConnectionUpdated);
    }

    public void OnDestroy()
    {
        NetChannel.UnbindFrom<ConnectionMessage>();
    }
}

Leave a Comment