工具UI框架整合

This commit is contained in:
huangjiayu 2023-09-11 11:42:57 +08:00
parent ae4b6414fd
commit b683c67880
3 changed files with 50 additions and 13 deletions

View File

@ -4,17 +4,20 @@ using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.Events; using UnityEngine.Events;
using System;
public class Button_click_count : MonoBehaviour public class Button_click_count : MonoBehaviour
{ {
public string[] ; public string[] ;
public string[] ; public string[] ;
public string[] ; // public string[] 触发方法;
/// <summary>
[SerializeField] /// 按钮加载以后控制物体开启关闭的方法
private UnityEvent events; /// </summary>
//[SerializeField]
// private UnityEvent events;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -37,10 +40,11 @@ public class Button_click_count : MonoBehaviour
} }
public void onclick() { public void onclick() {
events?.Invoke(); //events?.Invoke();
GameObject[] gameObjects = Resources.FindObjectsOfTypeAll<GameObject>(); GameObject[] gameObjects = Resources.FindObjectsOfTypeAll<GameObject>();

View File

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ToolsReceive_UICount : MonoBehaviour
{
public GameObject toolgo;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1836d12b844205b4b95024b663c51bfb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: