public void SetAttackMode(AttackMode amode) { AttackModeButton.GetComponent <Image>().sprite = AttackModeIcons[(int)amode]; SpriteState state = new SpriteState(); state = AttackModeButton.spriteState; state.highlightedSprite = AttackModeHoverIcons[(int)amode]; state.pressedSprite = AttackModeDownIcons[(int)amode]; AttackModeButton.spriteState = state; AttackModeText.text = amode.ToString(); }
public void SetCurrentAttackModeLabel(AttackMode attackMode) { modeLbl.text = string.Format("Mode: {0}", attackMode.ToString()); }