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; } }
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; } } }