E_ElecCompetition/Electrical_inspectionCompet.../Assets/Script/Tool objects/Tool_objects_base.cs

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.();
}
}