30 lines
756 B
C#
30 lines
756 B
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
//============================================================
|
||
//支持中文,文件使用UTF-8编码
|
||
//@author #AUTHOR#
|
||
//@create #CREATEDATE#
|
||
//@company #COMPANY#
|
||
//
|
||
//@description:
|
||
//============================================================
|
||
|
||
public class ToolModelManager : MonoBehaviour
|
||
{
|
||
public ToolItem[] toolItems;
|
||
public Transform toolItemContent;
|
||
|
||
/// <summary>
|
||
/// 需要3D去调用
|
||
/// </summary>
|
||
public void SwitchAllToolItems()
|
||
{
|
||
toolItems = toolItemContent.GetComponentsInChildren<ToolItem>();
|
||
for (int i = 0; i < toolItems.Length; i++)
|
||
{
|
||
toolItems[i].SwitchSelfIsClick();
|
||
}
|
||
}
|
||
}
|