protected override void Awake() { base.Awake(); _sprite = GetComponent <tk2dSprite>(); _controller = GetComponent <CombatantController>(); _animator = GetComponent <CombatantAnimator>(); StrangeUtils.Bubble(_animator.DeathSignal, DeathSignal); StrangeUtils.Bubble(_animator.AttackCompleteSignal, AttackCompleteSignal); StrangeUtils.Bubble(_animator.DodgeCompleteSignal, DodgeCompleteSignal); }
protected override void Awake() { base.Awake(); _spriteAnimator = GetComponent <tk2dSpriteAnimator>(); _combatantAnimator = GetComponent <CombatantAnimator>(); _windupAnimationClips[MathUtils.CardinalDirection.E] = FindClip("windup east"); _windupAnimationClips[MathUtils.CardinalDirection.N] = FindClip("windup north"); _windupAnimationClips[MathUtils.CardinalDirection.S] = FindClip("windup south"); _windupAnimationClips[MathUtils.CardinalDirection.W] = FindClip("windup east"); _advanceAnimationClips[MathUtils.CardinalDirection.W] = FindClip("advance east"); _advanceAnimationClips[MathUtils.CardinalDirection.E] = FindClip("advance east"); _advanceAnimationClips[MathUtils.CardinalDirection.S] = FindClip("advance south"); _advanceAnimationClips[MathUtils.CardinalDirection.N] = FindClip("advance north"); _farAdvanceAnimationClips[MathUtils.CardinalDirection.W] = FindClip("advance east long"); _farAdvanceAnimationClips[MathUtils.CardinalDirection.E] = FindClip("advance east long"); _farAdvanceAnimationClips[MathUtils.CardinalDirection.S] = FindClip("advance south long"); _farAdvanceAnimationClips[MathUtils.CardinalDirection.N] = FindClip("advance north long"); }