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/<2F><><EFBFBD>䳵").GetComponent<Animator>().enabled = true;
|
|||
|
GameObject.Find("Animation Meshes").GetComponent<PlayableDirector>().Play();//= true;
|
|||
|
}
|
|||
|
}
|