25 lines
455 B
C#
25 lines
455 B
C#
using UnityEngine;
|
|
|
|
namespace Thousandto.UpdateForm.Movie
|
|
{
|
|
/// <summary>
|
|
/// PC影片播放器
|
|
/// </summary>
|
|
public class PCMoviePlayerScript : MonoBehaviour
|
|
{
|
|
|
|
private IMoviePlayer _player;
|
|
|
|
public void SetPlayer(IMoviePlayer player)
|
|
{
|
|
_player = player;
|
|
}
|
|
|
|
void OnMouseDown()
|
|
{
|
|
Debug.Log("OnMouseDown");
|
|
_player.Stop();
|
|
}
|
|
}
|
|
}
|