示例#1
0
        private void setSlotItems(SlotitemModel_Battle[] models)
        {
            ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine;

            prodShellingSlotLine.SetSlotData(models, _iList);
            setHexBtn(models);
        }
        public static ProdShellingSlotLine Instantiate(ProdShellingSlotLine prefab, Transform parent)
        {
            ProdShellingSlotLine prodShellingSlotLine = Object.Instantiate <ProdShellingSlotLine>(prefab);

            prodShellingSlotLine.get_transform().set_parent(parent);
            prodShellingSlotLine.get_transform().localScaleOne();
            prodShellingSlotLine.get_transform().localPositionZero();
            return(prodShellingSlotLine);
        }
示例#3
0
        public static ProdShellingSlotLine Instantiate(ProdShellingSlotLine prefab, Transform parent)
        {
            ProdShellingSlotLine prodShellingSlotLine = UnityEngine.Object.Instantiate(prefab);

            prodShellingSlotLine.transform.parent = parent;
            prodShellingSlotLine.transform.localScaleOne();
            prodShellingSlotLine.transform.localPositionZero();
            return(prodShellingSlotLine);
        }
 protected virtual void playShellingSlot(SlotitemModel_Battle model, BaseProdLine.AnimationName iName, bool isFriend, float delay)
 {
     if (model == null)
     {
         return;
     }
     Observable.Timer(TimeSpan.FromSeconds((double)delay)).Subscribe(delegate(long _)
     {
         KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_048);
         ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine;
         prodShellingSlotLine.SetSlotData(model, isFriend);
         prodShellingSlotLine.Play(iName, isFriend, null);
     });
 }
示例#5
0
        private void playSlotItemTripleLine()
        {
            ProdShellingSlotLine prodShellingSlotLine = BattleTaskManager.GetPrefabFile().prodShellingSlotLine;

            prodShellingSlotLine.PlayTranscendenceLine(BaseProdLine.AnimationName.ProdTripleLine, _clsAttacker.IsFriend(), null);
        }