Exemplo n.º 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();
 }
Exemplo n.º 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);
        }
    }