Exemple #1
0
    public void GetShipType(Text _shipName)
    {
        netMngr.GetShipType(_shipName);

        GameObject    _obj     = (GameObject)Instantiate(shipInfo);
        lobbyShipInfo _infoScr = _obj.GetComponent <lobbyShipInfo>();

        _infoScr.Setup(_shipName.text);

        _obj.transform.SetParent(shipPanel.transform);
    }
Exemple #2
0
    public void LoadShipInfo(Text _shipName)
    {
        //netMngr.GetShipType(_shipName);

        //get type
        string _shipType = Player.Instance.LoadShipType(_shipName.text);
        //get shipStr
        string _shipStr = Player.Instance.LoadShip(_shipName.text);

        netMngr.SendShipInfo(_shipName.text, _shipType, _shipStr);


        GameObject    _obj     = (GameObject)Instantiate(shipInfo);
        lobbyShipInfo _infoScr = _obj.GetComponent <lobbyShipInfo>();

        _infoScr.Setup(_shipName.text);

        _obj.transform.SetParent(shipPanel.transform);
    }