Beispiel #1
0
 private void GenerateBounce(int count)
 {
     for (int i = 0; i < mCurMonsters.Count; i++)
     {
         if (prefab != null)
         {
             GameObject bouncePrefab = NGUITools.AddChild(transform.parent.gameObject, prefab);
             bouncePrefab.transform.position = pos.transform.position;
             EffectBounce eb = bouncePrefab.AddMissingComponent <EffectBounce>();
             if (count == 0)
             {
                 eb.DestoryDelegate += moreHitDelegate;
             }
             eb.count = count;
             eb.Init(mCurSkillNode, mCurMonsters[i], attackerTrans, null);
             eb.distance = mCurSkillNode.aoe_wide;
         }
     }
 }