Exemplo n.º 1
0
 public void SetSpawnClientIndex(NetworkPlayer playerNet, int val)
 {
     LinkPlayerCtrl.GetInstance().DisplayLinkPlayerName(val);
     if (Network.peerType != NetworkPeerType.Disconnected)
     {
         mNetViewCom.RPC("SendSpawnClientIndex", RPCMode.OthersBuffered, playerNet, val);
     }
 }
 void SendSpawnClientIndex(NetworkPlayer playerNet, int val)
 {
     LinkPlayerCtrl.GetInstance().DisplayLinkPlayerName(val);
     if (playerNet != Network.player)
     {
         return;
     }
     NetworkServerNet.GetInstance().SetIndexSpawnClient(val);
 }
    void ShowPlayerWait()
    {
        if (waitSprite != null)
        {
            return;
        }
        //waitSprite = LinkPlayerObj.GetComponent<UISprite>();
        waitSprite         = LinkPlayerCtrl.GetInstance().GetWaitPlayerSprite();
        waitSprite.enabled = true;

        CancelInvoke("DelayShowStartBt");
        Invoke("DelayShowStartBt", 5f);

        InvokeRepeating("LoopWait", 0f, 0.5f);
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     _Instance = this;
     InitLinkPlayer();
 }