Files
ZHGD_Web/Assets/Scripts/UI/WorkProgramPage.cs

24 lines
599 B
C#
Raw Permalink Normal View History

2025-07-13 23:16:20 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;
public class WorkProgramPage : MonoBehaviour
{
public List<GameObject> m_ActiveObjs = new List<GameObject>();
private void OnEnable()
{
foreach (GameObject obj in m_ActiveObjs)
{
obj.SetActive(true);
}
}
public void StartTimeLine()
{
GameObject.Find("Animation Meshes/<2F><><EFBFBD>䳵").GetComponent<Animator>().enabled = true;
GameObject.Find("Animation Meshes").GetComponent<PlayableDirector>().Play();//= true;
}
}