Exemplo n.º 1
0
        private EventScript.Sequence StartSequence(EventScript.TestCondition test, bool is_auto_forward = true, int startOffset = 0)
        {
            GameObject gameObject1 = new GameObject("EventCameraStream");

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject1, (UnityEngine.Object)null))
            {
                gameObject1.AddComponent <Animation>();
            }
            for (int index1 = 0; index1 < this.mSequences.Length; ++index1)
            {
                if (!this.mSequences[index1].Triggered && test(this.mSequences[index1]))
                {
                    this.CreateCanvas();
                    GameObject gameObject2 = new GameObject(((UnityEngine.Object) this).get_name());
                    this.mSequences[index1].Triggered = true;
                    EventScript.Sequence sequence = (EventScript.Sequence)gameObject2.AddComponent <EventScript.Sequence>();
                    sequence.Actions       = new EventAction[this.mSequences[index1].Actions.Count - startOffset];
                    sequence.IsAutoForward = is_auto_forward;
                    for (int index2 = startOffset; index2 < this.mSequences[index1].Actions.Count; ++index2)
                    {
                        int index3 = index2 - startOffset;
                        sequence.Actions[index3]          = (EventAction)UnityEngine.Object.Instantiate <EventAction>((M0)this.mSequences[index1].Actions[index2]);
                        sequence.Actions[index3].Sequence = sequence;
                        if (index2 > startOffset)
                        {
                            sequence.Actions[index3 - 1].NextAction = sequence.Actions[index3];
                        }
                    }
                    return(sequence);
                }
            }
            return((EventScript.Sequence)null);
        }
Exemplo n.º 2
0
 private void SkipButtonAction(bool inIsSpecial, EventScript.Sequence inEventScriptSequence, GameObject inSkipButtonGameObject)
 {
     if (!inIsSpecial)
     {
         GameUtility.FadeOut(2f);
     }
     else
     {
         inEventScriptSequence.GoToEndState();
     }
     inEventScriptSequence.OnQuitImmediate();
     inSkipButtonGameObject.SetActive(false);
 }
Exemplo n.º 3
0
 private void SkipButtonAction(EventScript.Sequence inEventScriptSequence, GameObject inSkipButtonGameObject)
 {
     GlobalVars.IsSkipQuestDemo = true;
     inEventScriptSequence.GoToEndState();
     inSkipButtonGameObject.SetActive(false);
 }