36 lines
927 B
C#
36 lines
927 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Tool_objects_base : ToolBase
|
|
{
|
|
// Start is called before the first frame update
|
|
|
|
protected override void Start()
|
|
{
|
|
base.Start();
|
|
// Debug.Log("启动");
|
|
EventTriggerListener.Get(transform.gameObject).onClick += g =>
|
|
{
|
|
//Debug.Log("onclick");
|
|
物品名称 = gameObject.name;
|
|
GameObject.Find("GameManager_Tools").GetComponent<GameManager_Tools>().toolsname = 物品名称;
|
|
GameObject.Find("GameManager_Tools").GetComponent<GameManager_Tools>().change_toolsbutton();
|
|
物品状态 = 物品状态.携带中;
|
|
工具携带();
|
|
};
|
|
// Debug.Log("启动"); zz
|
|
}
|
|
|
|
// Update is called once per frame
|
|
protected override void Update()
|
|
{
|
|
|
|
}
|
|
public override void 工具携带()
|
|
{
|
|
base.工具携带();
|
|
}
|
|
|
|
}
|