public void TriggerMonsterBorn(TriggerData trigger, int waveIndex) { if (battleMgr != null) { BoxCollider co = trigger.gameObject.GetComponent <BoxCollider>(); co.isTrigger = false; battleMgr.LoadMonsterByWaveID(waveIndex); battleMgr.ActiveCurrentBatchMonsters(); battleMgr.triggerCheck = true; } }