This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class GM : MonoBehaviour | |
{ | |
public const int STAGE_ATTRACTOR = 1; | |
public const int STAGE_HUMAN_DETECTED = 2; | |
public const int STAGE_BUTTON_INTERACT = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *videoLoopUrl; | |
// as [[NSBundle mainBundle] URLForResource:@"assets/yourVideo" withExtension:@"mp4"]]; | |
AVQueuePlayer *_loopVideoPlayer; | |
+(void) nextVideoInstance:(NSNotification*)notif | |
{ | |
AVPlayerItem *currItem = [AVPlayerItem playerItemWithURL: videoLoopUrl]; | |
[[NSNotificationCenter defaultCenter] addObserver:self |