Ejemplo n.º 1
0
    void Start()
    {
        comboD  = GetComponent <ComboDealer> ();
        powerUp = GetComponent <PowerUpDealer> ();


        /*print (Network.player);
         * print(Network.player.guid);*/
        cardGen = CardGenerator.s;

        //CmdSpawnScorePanel ();
        if (isLocalPlayer)
        {
            gameObject.name = "Local Player";
            CmdSetUpPlayer();
            if (isServer)
            {
                id = 0;
                print("We are the Host = " + id);
                playerEffect = PlayerEffectStorage.playerEffects [id];

                //ScoreBoardManager_LEGACY.s.myPlayer = id;
                //ScoreBoardManager_LEGACY.s.myPlayerScript = this;
                //print (connectionToClient.connectionId);
                //SpawnPanel ();
                //NetworkServer.Spawn (ScorePanel);
                Invoke("BitOfLag", 0.1f);
            }
        }
        else
        {
            //gameObject.SetActive (false);
        }

        /*else if (id >= 0) {
         *      SpawnPanel ();
         * } else {
         *      Invoke ("ReCheck", 0.5f);
         * }*/
    }
Ejemplo n.º 2
0
 private void Start()
 {
     s = this;
 }