public override void OnStartLocalPlayer() { LocalBus = this; LocalIdentity = gameObject.GetComponent <NetworkIdentity>(); if (OnLocalBusFound != null) { OnLocalBusFound(LocalBus); } }
private void OnLocalBusFound(NetworkBus bus) { NetworkBus = bus; NetworkBus.NetworkBusUsers.Add(this); }