public void SetAnim(EnemyAnimType type) { if (animator == null) { return; } switch (type) { case EnemyAnimType.Hit: { animator.SetTrigger("Hit"); break; } case EnemyAnimType.Die: { animator.SetTrigger("Die"); break; } case EnemyAnimType.Crawl: { animator.SetTrigger("Crawl"); break; } } }
public CombatUiEvent(string textboxString, FieldAnimType fieldAnim, EnemyAnimType enemyAnim, PuppetAnimType puppetAnim, int priority) { TextboxString = textboxString; FieldAnim = fieldAnim; EnemyAnim = enemyAnim; PuppetAnim = puppetAnim; Priority = priority; }