24 lines
599 B
C#
24 lines
599 B
C#
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/ÔËÊä³µ").GetComponent<Animator>().enabled = true;
|
|
GameObject.Find("Animation Meshes").GetComponent<PlayableDirector>().Play();//= true;
|
|
}
|
|
}
|