using MotionFramework; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ToolRoomToolsContainer : MonoBehaviour//HQB挂载在所有工具的根部,用于初始化工具是否显示 { public static ToolRoomToolsContainer instance; private Dictionary> _toolsNames; ToolRoomToolsContainer() { instance = this; } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } private void OnEnable() { if (instance != null) { _toolsNames = MotionEngine.GetModule().GetToolsPack(); foreach (var item in _toolsNames) { foreach (var item1 in item.Value) { item1.SetActive(false); } } } } }