public void CastToEnemy(BaseSkill activeSkill, BaseCharacter target) { // Player Action EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); // Enemy Action //target.characterAction.Act(activeSkill.skillTargetActionType); activeSkill.Excute(this, target.gameObject); }
public void CastToEnemies(BaseSkill activeSkill, List <BaseCharacter> targets) { // Player Action EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); // Enemy Action foreach (var t in targets) { //t.characterAction.Act(activeSkill.skillTargetActionType); activeSkill.Excute(this, t.gameObject); } }
public virtual void CastToAlly(BaseSkill activeSkill, BaseCharacter target) { // Player Action PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); // Ally Action if (target != this) { target.characterAction.Act(activeSkill.skillTargetActionType); } activeSkill.Excute(this, target.gameObject); }
public virtual void CastToAllies(BaseSkill activeSkill, List <BaseCharacter> targets) { // Player Action PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); // Enemy Action foreach (var t in targets) { if (t != this) { t.characterAction.Act(activeSkill.skillTargetActionType); } activeSkill.Excute(this, t.gameObject); } }
public override void CastToSelf(BaseSkill activeSkill) { EnemyManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); activeSkill.Excute(this, gameObject); }
public virtual void CastToSelf(BaseSkill activeSkill) { PlayerManager.instance.activeCharacter.characterAction.Act(activeSkill.skillActionType); activeSkill.Excute(this, gameObject); }