Files
M-Gameton-06/Gameton-06/Assets/Gameton/Scripts/Monster/Attack.cs
2025-02-13 18:30:53 +09:00

22 lines
495 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
public class Attack : MonoBehaviour
{
[SerializeField]
private MonsterBase _monsterBase;
private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("Player"))
{
_monsterBase.SetTransition(new AttackState());
// _monsterBase.Attack(other.gameObject);
}
}
}
}