62 lines
1.5 KiB
C#
62 lines
1.5 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Tool_objects_base : ToolBase
|
|
{
|
|
// Start is called before the first frame update
|
|
/// <summary>
|
|
/// 묏야쇌膠竟샘뇟신굶
|
|
/// </summary>
|
|
protected override void Start()
|
|
{
|
|
base.Start();
|
|
// Debug.Log("폘땡");
|
|
for (int i = 0; i < GameObject.Find("Don'Destory").GetComponent<HoldToolsCheck>().넣唐묏야.Count; i++)
|
|
{
|
|
|
|
if (GameObject.Find("Don'Destory").GetComponent<HoldToolsCheck>().넣唐묏야[i] ==this.膠틔츰냔)
|
|
{
|
|
|
|
gameObject.SetActive(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
EventTriggerListener.Get(transform.gameObject).onClick += g =>
|
|
{
|
|
GameManager_Tools gameManager_Tools;
|
|
gameManager_Tools = GameObject.Find("GameManager_Tools").GetComponent<GameManager_Tools>();
|
|
gameManager_Tools.target = gameObject;
|
|
//Debug.Log("onclick");
|
|
膠틔츰냔 = gameObject.name;
|
|
gameManager_Tools.toolsname = 膠틔츰냔;
|
|
gameManager_Tools.change_toolsbutton();
|
|
// gameManager_Tools.tool_Objects_Base.Add(transform.GetComponent<Tool_objects_base>());
|
|
|
|
膠틔榴檄 = 膠틔榴檄.赳던櫓;
|
|
묏야赳던();
|
|
};
|
|
// Debug.Log("폘땡"); zz
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
|
|
}
|
|
public override void 묏야赳던()
|
|
{
|
|
base.묏야赳던();
|
|
}
|
|
|
|
}
|