Beispiel #1
0
        public static ProdMapClear Instantiate(ProdMapClear prefab, Transform parent, KeyControl keyControl, ShipModel_BattleAll ship, int nPanelDepth)
        {
            ProdMapClear prodMapClear = Object.Instantiate <ProdMapClear>(prefab);

            prodMapClear.get_transform().set_parent(parent);
            prodMapClear.get_transform().set_localScale(Vector3.get_one());
            prodMapClear.get_transform().set_localPosition(Vector3.get_zero());
            prodMapClear._init();
            prodMapClear._keyControl = keyControl;
            prodMapClear._ship       = ship;
            prodMapClear.setShipTexture();
            return(prodMapClear);
        }
Beispiel #2
0
        public static ProdMapClear Instantiate(ProdMapClear prefab, Transform parent, KeyControl keyControl, ShipModel_BattleAll ship, int nPanelDepth)
        {
            ProdMapClear prodMapClear = UnityEngine.Object.Instantiate(prefab);

            prodMapClear.transform.parent        = parent;
            prodMapClear.transform.localScale    = Vector3.one;
            prodMapClear.transform.localPosition = Vector3.zero;
            prodMapClear._init();
            prodMapClear._keyControl = keyControl;
            prodMapClear._ship       = ship;
            prodMapClear.setShipTexture();
            return(prodMapClear);
        }