Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     if (StartMethod == StartMethod.OnStart && Cutscene != null)
     {
         hasTriggered = true;
         Cutscene.Play();
     }
 }
Exemplo n.º 2
0
 /// <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();
     }
 }
Exemplo n.º 3
0
 /// <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;
     }
 }
Exemplo n.º 4
0
 private void OnEnable()
 {
     if (StartMethod == StartMethod.OnEnable && Cutscene != null)
     {
         hasTriggered = true;
         if (onTriggeredCallback != null)
         {
             onTriggeredCallback();
         }
         Cutscene.Play();
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Trigger this event and Play the given Cutscene.
 /// </summary>
 public override void Trigger()
 {
     if (cutscene != null)
     {
         cutscene.Play();
     }
 }
Exemplo n.º 6
0
 /// <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();
     }
 }
Exemplo n.º 7
0
    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();
        }
    }
Exemplo n.º 8
0
        /// <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));
     }
 }
Exemplo n.º 11
0
        private IEnumerator PlayCutscene()
        {
            yield return(new WaitForSeconds(Delay));

            Cutscene.Play();
        }