PO/Assets/Scripts/Enemy/LibraryTurnMethods.cs

27 lines
617 B
C#

using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using UnityEditor;
public class LibraryTurnMethods : MonoBehaviour
{
public void Attack()
{
Enemy _enemy = BaseEnemyTurn.basic.currentEnemy.GetComponent<Enemy>();
Player.main.ChangeHp(_enemy.enemyConfig.enemyCharacteristics.damage);
}
public void Healing()
{
Enemy _enemy = BaseEnemyTurn.basic.currentEnemy.GetComponent<Enemy>();
int _healing =
_enemy.enemyConfig.enemyCharacteristics.healing;
_enemy.ChangeHp(-_healing);
}
}