public void EventCaculateAfter(ObjectInfo enemy) { //적 생성 _enemyInfo = (EnemyObjInfo)enemy; _eventCount = 1; _enemyObjCtrl.OnObject(); _resultAndDesc = CaculateScript.MonsterEncounter(_enemyInfo); _result = (MonsterResult[])_resultAndDesc.result; _cardScript.CardSetting(_resultAndDesc.desc); }
public void EventCaculate() { //적 생성 _enemyInfo = (EnemyObjInfo)DataPool._current._eventObjDic["Monster"] [Random.Range(0, DataPool._current._eventObjDic["Monster"].Count)].Clone(); _eventCount = 0; _enemyObjCtrl.OnObject(); _resultAndDesc = CaculateScript.MonsterEncounter(_enemyInfo); _result = (MonsterResult[])_resultAndDesc.result; _cardScript.CardSetting(_resultAndDesc.desc); _cardScript.SetFrontDesc(DataPool._current._ScriptionDic["EncounterMessage"] [Random.Range(0, DataPool._current._ScriptionDic["EncounterMessage"].Count)]); }