Layout participant sprites better
This commit is contained in:
parent
6724d2b5c5
commit
d67a7372c9
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
|
|||
|
||||
heroSprites[i] = HeroDatabase.createHeroSprite(id);
|
||||
heroSprites[i].name = "Hero" + i + "_Sprite";
|
||||
heroSprites[i].transform.position = new Vector3(-6 + 6 * i, 0, 0);
|
||||
heroSprites[i].transform.position = new Vector3(-1 + -3 + 3 * i, 0, 0);
|
||||
BattleParticipantSprite bps = heroSprites[i].AddComponent<BattleParticipantSprite>();
|
||||
bps.Init(battlePlayerControls, heroes[i]);
|
||||
bps.OnSpriteClicked += battlePlayerControls.NotifyParticipantSpriteClicked;
|
||||
|
|
@ -59,7 +59,7 @@ public class BattleController : MonoBehaviour, IBattleEffectApplier, IBattleEffe
|
|||
|
||||
monsterSprites[i] = MonsterDatabase.createMonsterSprite(id);
|
||||
monsterSprites[i].name = "Monster" + i + "_Sprite";
|
||||
monsterSprites[i].transform.position = new Vector3(-6 + 6 * i, 3, 0);
|
||||
monsterSprites[i].transform.position = new Vector3(+1 + -3 + 3 * i, 3, 0);
|
||||
BattleParticipantSprite bps = monsterSprites[i].AddComponent<BattleParticipantSprite>();
|
||||
bps.Init(battlePlayerControls, monsters[i]);
|
||||
bps.OnSpriteClicked += battlePlayerControls.NotifyParticipantSpriteClicked;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue