工具UI框架整合
This commit is contained in:
parent
ae4b6414fd
commit
b683c67880
|
@ -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>();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1836d12b844205b4b95024b663c51bfb
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue