Untitled

 avatar
unknown
csharp
a year ago
304 B
4
Indexable
public class SomeComponent : MonoBehaviour
{
    public NetEventChannel LocalNetChannel;

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

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

Editor is loading...
Leave a Comment