Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        for (int i = 0; i < gridArr.Length; i++)
        {
            gridArr[i] = new Transform[gridMaxWidth, gridMaxHeight];
        }

        NM       = FindObjectOfType <NetworkManager>();
        idPlayer = LANPPH.GetIdPlayer();
        game     = null;
    }
    private void ResetPlayerPanels()
    {
        for (int i = 0; i < LANPlayerPrefabHelper.ArrayLenght; i++)
        {
            LANPlayerPrefabHelper lanpph = LANPPH.GetLANPlayerArrayElement(i);
            if (lanpph != null)
            {
                CmdSetPlayerPanel(lanpph.GetIdPlayer());
            }
            if (lanpph == null)
            {
                CmdCleanPlayerPanel(i);
            }
        }

        Debug.Log(DateTime.Now.ToString("hh:mm:ss:ffff") + ": Обновлены значения панелей игроков. Очищены неактуальные панели");
    }