private void uLink_OnNetworkInstantiate(NetworkMessageInfo info) { if (base.networkView.isMine) { GameTip componentInChildren = base.GetComponentInChildren <GameTip>(); if (componentInChildren != null) { componentInChildren.enabled = false; } } if (!base.networkView.isMine) { GameTip tip2 = base.GetComponentInChildren <GameTip>(); if ((tip2 != null) && (base.playerClient != null)) { tip2.text = base.playerClient.userName; } } }
private void uLink_OnNetworkInstantiate(uLink.NetworkMessageInfo info) { if (base.networkView.isMine) { GameTip componentInChildren = base.GetComponentInChildren <GameTip>(); if (componentInChildren) { componentInChildren.enabled = false; } } if (!base.networkView.isMine) { GameTip gameTip = base.GetComponentInChildren <GameTip>(); if (gameTip && base.playerClient) { gameTip.text = base.playerClient.userName; } } }