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