Untitled

Anonymous
csharp
04/12/2024 10:00 PM
408 B
19
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