init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43e1d1c69012c9f46b82cc5597ad393d
|
||||
timeCreated: 1461859568
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,33 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class QuitVLCHelper : MonoBehaviour {
|
||||
|
||||
private PlayVLC[] videos;
|
||||
|
||||
void Start () {
|
||||
videos = GameObject.FindObjectsOfType<PlayVLC>();
|
||||
}
|
||||
|
||||
public void QuitAllVideos() {
|
||||
foreach (PlayVLC video in videos) {
|
||||
video.StopVideo();
|
||||
}
|
||||
}
|
||||
|
||||
public void QuitApplication() {
|
||||
foreach (PlayVLC video in videos) {
|
||||
video.StopVideo();
|
||||
}
|
||||
|
||||
Application.Quit();
|
||||
}
|
||||
|
||||
void OnApplicationQuit() {
|
||||
foreach (PlayVLC video in videos)
|
||||
{
|
||||
video.StopVideo();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 850c65b6690b7534591705191168ce88
|
||||
timeCreated: 1461859571
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user