示例#1
0
 private void Update()
 {
     _clsInput.Update();
     if (Input.GetKeyDown(KeyCode.B))
     {
         Reward_Ship rewardShip = new Reward_Ship(131);
         _prodReceievShip = ProdReceiveShip.Instantiate(PrefabFile.Load <ProdReceiveShip>(PrefabFileInfos.CommonProdReceiveShip), base.transform.parent, rewardShip, 1, _clsInput);
         _prodReceievShip.Play(delegate
         {
             Debug.Log("艦娘ドロップ演出終了");
         });
     }
 }
 private void Update()
 {
     this._clsInput.Update();
     if (Input.GetKeyDown(98))
     {
         Reward_Ship rewardShip = new Reward_Ship(131);
         this._prodReceievShip = ProdReceiveShip.Instantiate(PrefabFile.Load <ProdReceiveShip>(PrefabFileInfos.CommonProdReceiveShip), base.get_transform().get_parent(), rewardShip, 1, this._clsInput);
         this._prodReceievShip.Play(delegate
         {
             Debug.Log("艦娘ドロップ演出終了");
         });
     }
 }
        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);
        }
 public static ProdReceiveShip Instantiate(ProdReceiveShip prefab, Transform parent, IReward_Ship rewardShip, int nPanelDepth, KeyControl input)
 {
     return(ProdReceiveShip.Instantiate(prefab, parent, rewardShip, nPanelDepth, input, true));
 }