添加缺失插件
This commit is contained in:
27
Assets/YOMOV Access/S00_Teach.cs
Normal file
27
Assets/YOMOV Access/S00_Teach.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user