public override void OnEnter() { atk = gameMode.ChapterManager.GetCharacterFromCoord(AttackInfo.attacker.GetTileCoord()); def = gameMode.ChapterManager.GetCharacterFromCoord(AttackInfo.defender.GetTileCoord()); atkSr = atk.GetSpriteRender(); defSr = def.GetSpriteRender(); atk_direction = PositionMath.GetDirection(atk.GetTileCoord(), def.GetTileCoord()); gameMode.unitShower.SetDirection(atk.GetSpriteRender(), atk_direction); def_direction = PositionMath.GetDirection(def.GetTileCoord(), atk.GetTileCoord()); gameMode.unitShower.SetDirection(def.GetSpriteRender(), def_direction); gameMode.UIManager.ShowAttackInfo(atk.Logic, def.Logic); Utils.GameUtil.DelayFunc(this, Shake, 0.25f); }
public override void OnEnter() { int id = ID; if (ID < 0) { id = gameMode.BattleManager.CurrentCharacterLogic.GetID();; } RPGCharacter ch = gameMode.ChapterManager.GetCharacterFromID(id); gameMode.unitShower.Shake(ch.GetSpriteRender(), direction, duration, intensity, () => DelayContinue(delayContinue)); }
public override void OnEnter() { int id = ID; if (ID < 0) { id = gameMode.BattleManager.CurrentCharacterLogic.GetID();; } RPGCharacter ch = gameMode.ChapterManager.GetCharacterFromID(id); if (resetStay) { ch.GetMultiSpriteAnimator().SetActiveAnimator(MultiSpriteAnimator.EAnimateType.Stay); } else { gameMode.unitShower.SetDirection(ch.GetSpriteRender(), direction); } Continue(); }