PVMgr.instance.PV_Reset ();
ArrayList tmp = new ArrayList ();
tmp.Add (GameData.instance.GetHeroData(3));
tmp.Add (GameData.instance.GetHeroData(5));
tmp.Add (GameData.instance.GetHeroData(9));
PVMgr.instance.PvP_AddAlly(0, tmp);
ArrayList tmp1 = new ArrayList ();
tmp1.Add (GameData.instance.GetHeroData(5));
tmp1.Add (GameData.instance.GetHeroData(9));
tmp1.Add (GameData.instance.GetHeroData(11));
PVMgr.instance.PvP_AddAlly(1, tmp1);
위가 정상 동작
아래가 비정상 동작... 이상한 값이 들어온다
ArrayList tmpEnemy = new ArrayList ();
tmpEnemy.Add (GameData.instance.GetHeroData(11));
tmpEnemy.Add (GameData.instance.GetHeroData(15));
tmpEnemy.Add (GameData.instance.GetHeroData(20));
PVMgr.instance.PvP_AddEnemy (3, tmpEnemy);
tmpEnemy.Clear ();
tmpEnemy.Add (GameData.instance.GetHeroData(15));
tmpEnemy.Add (GameData.instance.GetHeroData(20));
tmpEnemy.Add (GameData.instance.GetHeroData(24));
PVMgr.instance.PvP_AddEnemy (4, tmpEnemy);
tmpEnemy.Clear ();
tmpEnemy.Add (GameData.instance.GetHeroData(20));
tmpEnemy.Add (GameData.instance.GetHeroData(24));
tmpEnemy.Add (GameData.instance.GetHeroData(0));
PVMgr.instance.PvP_AddEnemy (5, tmpEnemy);
tmpEnemy.Clear ();
tmpEnemy.Add (GameData.instance.GetHeroData(0));
tmpEnemy.Add (GameData.instance.GetHeroData(9));
tmpEnemy.Add (GameData.instance.GetHeroData(11));
'프로그래밍 > C#' 카테고리의 다른 글
C# 에서 ListView 항목 csv (엑셀) 로 저장 (0) | 2016.11.30 |
---|---|
C# 가상함수(Virtual)와 오버라이드(override) (0) | 2016.10.27 |
ArrayList 초기화 방법들 (0) | 2016.09.23 |
Close Button Event (0) | 2016.09.05 |
RX vs2012 에서 설치 (0) | 2016.08.25 |
댓글