public static UIFleetInfos Instantiate(UIFleetInfos prefab, Transform parent, Vector3 pos, List <ShipModel_BattleAll> ships)
        {
            UIFleetInfos uIFleetInfos = Object.Instantiate <UIFleetInfos>(prefab);

            uIFleetInfos.get_transform().set_parent(parent);
            uIFleetInfos.get_transform().localScaleOne();
            uIFleetInfos.get_transform().set_localPosition(pos);
            uIFleetInfos.Init(ships);
            return(uIFleetInfos);
        }
Ejemplo n.º 2
0
        public static UIFleetInfos Instantiate(UIFleetInfos prefab, Transform parent, Vector3 pos, List <ShipModel_BattleAll> ships)
        {
            UIFleetInfos uIFleetInfos = Object.Instantiate(prefab);

            uIFleetInfos.transform.parent = parent;
            uIFleetInfos.transform.localScaleOne();
            uIFleetInfos.transform.localPosition = pos;
            uIFleetInfos.Init(ships);
            return(uIFleetInfos);
        }