- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
if( mIsTarget )
{
...
if( !mTargetUnit )
{
panel.isTarget = true;
}
else
{
mTargetUnit.isTarget = true;
}
if( targetUnitId )
{
targetId = targetUnitId;
}
else
{
if( !mTargetUnit )
{
targetId = panel.getId();
}
else
{
targetId = mTargetUnit.getId();
}
}
}
else if( !mIsTarget )
{
if( mUnitManager.getUnitList())
{
for( i = 0; i < mUnitManager.getUnitList().length; i++ )
{
( mUnitManager.getUnit( mUnitManager.getUnitList()[ i ]) as BattleUnit ).hasTarget = false;
( mUnitManager.getUnit( mUnitManager.getUnitList()[ i ]) as BattleUnit ).isTarget = false;
}
}
}
TarasB 09.02.2011 11:58 # 0
Werdn 09.02.2011 13:01 # 0
gegMOPO4 09.02.2011 13:51 # 0