28 lines
549 B
C#
28 lines
549 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Playables;
|
|
using Yomov;
|
|
|
|
public class S00_Teach : MonoBehaviour
|
|
{
|
|
public PlayableDirector playerDirection;
|
|
void Start()
|
|
{
|
|
YomovClientManager.Instance.OnStartGame += StartGame;
|
|
}
|
|
|
|
public void StartGame()
|
|
{
|
|
playerDirection.Play();
|
|
}
|
|
|
|
public void OnDestroy()
|
|
{
|
|
if(YomovClientManager.Instance != null)
|
|
{
|
|
YomovClientManager.Instance.OnStartGame -= StartGame;
|
|
}
|
|
}
|
|
}
|