Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        print("Player started");

        GameObject viewHolderObject = GameObject.FindGameObjectWithTag("ViewHolder");

        viewHolder = viewHolderObject.GetComponent <ViewHolder>();

        if (isLocalPlayer)
        {
            viewHolder.RegisterLocalPlayer(this);
            viewHolder.TryToShowMultiplayerScreen();
        }
    }