PO/Assets/LibraryTurnMethods.cs

28 lines
661 B
C#
Raw Normal View History

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;
Debug.Log(_enemy + " " + _healing);
_enemy.ChangeHp(-_healing);
}
}