Exemplo n.º 1
0
        private void PostLoad()
        {
            ReferencedSequence = ActionSequence.FindSequence(Name);
            AddSelf();

            StartCoroutine(IOUtil.LoadOGGIntoSource(IOUtil.PathCombine("sfx", PathToAudioClip), _source));
        }
Exemplo n.º 2
0
 public void Start()
 {
     if (BeginOnLevelLoad)
     {
         BeginSequence();
     }
     if (HasNextSequence)
     {
         _referencedNextSequence = FindSequence(NextSequence);
         if (!_referencedNextSequence.ReferencedGameObject)
         {
             _referencedNextSequence.ReferencedGameObject = ReferencedGameObject;
         }
     }
 }
Exemplo n.º 3
0
        public static GameObject Instantiate(ENTITY e)
        {
            GameObject     instantiated   = new GameObject(e.Classname);
            ActionSequence actionSequence = instantiated.AddComponent <ActionSequence>();

            actionSequence.SequenceName = e.GetPropertyValue("Sequence name");
            if (actionSequence.SequenceName.Equals(string.Empty))
            {
                Debug.Log("Found action_sequence without name! Please set name in Torii.");
            }
            actionSequence.NextSequence = e.GetPropertyValue("Next sequence");

            actionSequence.TimesToLoop = EntityUtil.TryParseInt("Times to loop", e);

            actionSequence.BeginOnLevelLoad = e.GetSpawnflagValue(0, 3);
            actionSequence.LoopSequence     = e.GetSpawnflagValue(1, 3);
            actionSequence.HasNextSequence  = e.GetSpawnflagValue(2, 3);

            Sequences.Add(actionSequence);

            EntityUtil.SetInstantiatedObjectTransform(e, ref instantiated);

            return(instantiated);
        }
Exemplo n.º 4
0
 private void PostLoad()
 {
     ReferencedSequence = ActionSequence.FindSequence(Name);
     AddSelf();
 }
Exemplo n.º 5
0
 private void PostLoad()
 {
     _targetTransform   = Target.GetTargetTransform(TargetName);
     ReferencedSequence = ActionSequence.FindSequence(Name);
     AddSelf();
 }