12345678910111213141516171819202122 |
- using System;
- using UnityEngine;
- public class MovieTextureCtrl : MonoBehaviour
- {
- private void Start()
- {
- this.mt = (base.GetComponent<Renderer>().material.mainTexture as MovieTexture);
- this.mt.Stop();
- }
- public void Play()
- {
- this.mt.Play();
- }
- private void Update()
- {
- }
- private MovieTexture mt;
- }
|