public override void OnStartClient() { base.OnStartClient(); // We can't send the partial result until the object is created on the client side // Only objects with this client authority can call commands, that's why we go through the Player MirrorHelpers.GetClientLocalPlayer(netIdentity).AskForSymbolPartialResult(); }
public override void OnStartClient() { transform.SetParent(GameManager.Instance.transform); Player associatedPlayer = MirrorHelpers.GetClientLocalPlayer(netIdentity); if (TypesHelpers.HasMatchingType(GetDisplayType(), associatedPlayer.deviceType) && IsLocalPlayerInGame()) { GamesViewsManager.Instance.CreateGameView(this); } }
public bool IsLocalPlayerInGame() { return(playerIdentities.Contains(MirrorHelpers.GetClientLocalPlayerIdentity(netIdentity))); }