// Use this for initialization void Start() { if (StartMethod == StartMethod.OnStart && Cutscene != null) { hasTriggered = true; Cutscene.Play(); } }
/// <summary> /// If Cutscene is setup to play on trigger, watch for the trigger event. /// </summary> /// <param name="other">The other collider.</param> void OnTriggerEnter(Collider other) { if (StartMethod == StartMethod.OnTrigger && !hasTriggered && other.gameObject == TriggerObject) { hasTriggered = true; Cutscene.Play(); } }
/// <summary> /// If Cutscene is setup to play on trigger, watch for the trigger event. /// </summary> /// <param name="other">The other collider.</param> void OnTriggerEnter(Collider other) { if (StartMethod == StartMethod.OnTrigger && !hasTriggered && other.gameObject == TriggerObject) { hasTriggered = true; Cutscene.Play(); LCharacterAction.pauseActions = true; LCharacterFellowCamera.notUpdateCamera = true; } }
private void OnEnable() { if (StartMethod == StartMethod.OnEnable && Cutscene != null) { hasTriggered = true; if (onTriggeredCallback != null) { onTriggeredCallback(); } Cutscene.Play(); } }
/// <summary> /// Trigger this event and Play the given Cutscene. /// </summary> public override void Trigger() { if (cutscene != null) { cutscene.Play(); } }
/// <summary> /// If Cutscene is setup to play on trigger, watch for the trigger event. /// </summary> /// <param name="other">The other collider.</param> void OnTriggerEnter(Collider other) { if (!hasTriggered && other.gameObject == TriggerObject) { hasTriggered = true; Cutscene.Play(); } }
void UsablePocaPetal_OnPocaUsedWhileTurnedOn() { // holdTime = 0.01f; // targetScale = activatedScale; if (naivis.TURNON_MODE) { return; } if (usablePocaPetal.pocaPetal.index != 0) { // naivis.isLocked = true; // naivis.isAccessible = false; // usablePocaPetal.isAccessible = false; cutscene.Play(); } }
/// <summary> /// If Cutscene is setup to play on trigger, watch for the trigger event. /// </summary> /// <param name="other">The other collider.</param> void OnTriggerEnter(Collider other) { // if (!hasTriggered && other.gameObject == TriggerObject) if (!hasTriggered && other.CompareTag("Player")) //only player can trigger the cutscene { hasTriggered = true; Cutscene.Play(); } }
static public int Play(IntPtr l) { try { CinemaDirector.Cutscene self = (CinemaDirector.Cutscene)checkSelf(l); self.Play(); return(0); } catch (Exception e) { return(error(l, e)); } }
static int Play(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); CinemaDirector.Cutscene obj = (CinemaDirector.Cutscene)ToLua.CheckObject <CinemaDirector.Cutscene>(L, 1); obj.Play(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private IEnumerator PlayCutscene() { yield return(new WaitForSeconds(Delay)); Cutscene.Play(); }