public static ProdReceiveShip Instantiate(ProdReceiveShip prefab, Transform parent, IReward_Ship rewardShip, int nPanelDepth, KeyControl input, bool needBGM) { ProdReceiveShip prodReceiveShip = Object.Instantiate <ProdReceiveShip>(prefab); prodReceiveShip.get_transform().set_parent(parent); prodReceiveShip.get_transform().set_localScale(Vector3.get_one()); prodReceiveShip.get_transform().set_localPosition(Vector3.get_zero()); prodReceiveShip.init(); prodReceiveShip._clsRewardShip = rewardShip; prodReceiveShip.GetComponent <UIPanel>().depth = nPanelDepth; prodReceiveShip._clsInput = input; prodReceiveShip._isNeedBGM = needBGM; prodReceiveShip._anim.Stop(); return(prodReceiveShip); }
public static ProdReceiveShip Instantiate(ProdReceiveShip prefab, Transform parent, IReward_Ship rewardShip, int nPanelDepth, KeyControl input, bool needBGM) { ProdReceiveShip prodReceiveShip = UnityEngine.Object.Instantiate(prefab); prodReceiveShip.transform.parent = parent; prodReceiveShip.transform.localScale = Vector3.one; prodReceiveShip.transform.localPosition = Vector3.zero; prodReceiveShip.init(); prodReceiveShip._clsRewardShip = rewardShip; prodReceiveShip.GetComponent <UIPanel>().depth = nPanelDepth; prodReceiveShip._clsInput = input; prodReceiveShip._isNeedBGM = needBGM; prodReceiveShip._anim.Stop(); return(prodReceiveShip); }