using System.Collections; using System.Collections.Generic; using UnityEngine; //============================================================ //支持中文,文件使用UTF-8编码 //@author #AUTHOR# //@create #CREATEDATE# //@company #COMPANY# // //@description: //============================================================ public class ToolModelManager : MonoBehaviour { public ToolModelClick[] toolModelClicks; public void GetAllToolModels() { GameObject toolContent = GameObject.FindGameObjectWithTag("AllTools"); toolModelClicks = toolContent.transform.GetComponentsInChildren(); } }