Beispiel #1
0
 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();
 }
Beispiel #2
0
    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);
        }
    }
Beispiel #3
0
 public bool IsLocalPlayerInGame()
 {
     return(playerIdentities.Contains(MirrorHelpers.GetClientLocalPlayerIdentity(netIdentity)));
 }