public void ControlledInit(bool isAttackingFromLeft, int attackModifier) { AttacksFromTheLeft = isAttackingFromLeft; AttackModifier = attackModifier; if (attackModifier != -1) { spriteRenderer = GetComponent <SpriteRenderer>(); spriteRenderer.sprite = BeatList.getSpecificBeat(deduceSpriteIndex()); } }
public void RandomInit() { spriteRenderer = GetComponent <SpriteRenderer>(); spriteRenderer.sprite = BeatList.getRandomBeat(); parseSpriteName(); }