public static ProdCutReceiveShip Instantiate(ProdCutReceiveShip prefab, Transform parent, IReward_Ship rewardShip, int nPanelDepth, KeyControl input, bool needBGM)
        {
            ProdCutReceiveShip prodCutReceiveShip = UnityEngine.Object.Instantiate(prefab);

            prodCutReceiveShip.transform.parent        = parent;
            prodCutReceiveShip.transform.localScale    = Vector3.one;
            prodCutReceiveShip.transform.localPosition = Vector3.zero;
            prodCutReceiveShip.Init();
            prodCutReceiveShip._clsRewardShip = rewardShip;
            prodCutReceiveShip._setRewardShip();
            prodCutReceiveShip.GetComponent <UIPanel>().depth = nPanelDepth;
            prodCutReceiveShip._clsInput  = input;
            prodCutReceiveShip._isNeedBGM = needBGM;
            prodCutReceiveShip._anim.Stop();
            return(prodCutReceiveShip);
        }
示例#2
0
        public static ProdCutReceiveShip Instantiate(ProdCutReceiveShip prefab, Transform parent, IReward_Ship rewardShip, int nPanelDepth, KeyControl input, bool needBGM)
        {
            ProdCutReceiveShip prodCutReceiveShip = Object.Instantiate <ProdCutReceiveShip>(prefab);

            prodCutReceiveShip.get_transform().set_parent(parent);
            prodCutReceiveShip.get_transform().set_localScale(Vector3.get_one());
            prodCutReceiveShip.get_transform().set_localPosition(Vector3.get_zero());
            prodCutReceiveShip.Init();
            prodCutReceiveShip._clsRewardShip = rewardShip;
            prodCutReceiveShip._setRewardShip();
            prodCutReceiveShip.GetComponent <UIPanel>().depth = nPanelDepth;
            prodCutReceiveShip._clsInput  = input;
            prodCutReceiveShip._isNeedBGM = needBGM;
            prodCutReceiveShip._anim.Stop();
            return(prodCutReceiveShip);
        }