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