35 lines
875 B
C#
35 lines
875 B
C#
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()
|
||
{
|
||
|
||
}
|
||
}
|