2024-10-23 09:14:01 +08:00

35 lines
875 B
C#
Raw Blame History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
/// <summary>
/// 屆뉨里술
/// </summary>
public class Hammer_Mon : MonoBehaviour, IPointerClickHandler
{
public void OnPointerClick(PointerEventData eventData)
{
if (GameObject.FindGameObjectWithTag("屆슁鯤소").GetComponent<BlacksmithPlayer_Mon>().GetForgingbarBoxCount() == 0)
{
Debug.LogError("똴芚憩<E88A9A>청꼼죕");
return;
}
Debug.Log("嶠포역迦똴芚");
GameObject.FindGameObjectWithTag("屆슁鯤소").GetComponent<BlacksmithPlayer_Mon>().HammerForging();
GameObject.FindGameObjectWithTag("屆슁鯤소").GetComponent<BlacksmithPlayer_Mon>().RemoveForgingbar();
}
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}