Exemplo n.º 1
0
    public override void OnStartClient()
    {
        base.OnStartClient();

        scoreBoard = GameObject.Find("Score Board").GetComponent <ScoreBoard>();

        if (isServer)
        {
            scoreBoard.CmdRegisterPlayer(netId);
        }

        ui = transform.GetChild(2).gameObject;
        ui.SetActive(false);

        ui.transform.parent = null;
    }