示例#1
0
    public void TriggerMonsterBorn(TriggerData trigger, int waveIndex)
    {
        if (battleMgr != null)
        {
            BoxCollider co = trigger.GetComponent <BoxCollider>();
            co.isTrigger = false;

            battleMgr.LoadMonsterByWaveID(waveIndex);
            battleMgr.ActiveCurrentBatchMonsters();
            battleMgr.triggerCheck = true;
        }
    }
示例#2
0
 public void TriggerMonsterBorn(TriggerData triggerData, int batchIdx)
 {
     if (battleMgr != null)
     {
         battleMgr.LoadMonsterByBatchID(batchIdx);
         battleMgr.ActiveCurrentBatchMonsters();
         battleMgr._bTriggerCheck = true;
         BoxCollider box = triggerData.GetComponent <BoxCollider>();
         if (box)
         {
             box.isTrigger = false;
         }
     }
 }