Пример #1
0
 //-------------------------------------------------------------------------
 // Auto Node API
 //-------------------------------------------------------------------------
 public override void Handle(GraphEngine graphEngine)
 {
     if (graphEngine.LockNode())
     {
         new UnityTask(PlayTimeline(graphEngine));
     }
 }
Пример #2
0
        //-------------------------------------------------------------------------
        // Auto Node API
        //-------------------------------------------------------------------------
        public override void Handle(GraphEngine graphEngine)
        {
            if (Target == null)
            {
                Debug.Log("Tween Node in graph \"" + graphEngine.GetCurrentGraph().GraphName + "\" is missing a target to move.");
                return;
            }

            if (Destination == null)
            {
                Debug.Log("Tween Node in graph \"" + graphEngine.GetCurrentGraph().GraphName + "\" is missing a destination.");
                return;
            }

            if (PauseGraph)
            {
                if (graphEngine.LockNode())
                {
                    new UnityTask(Tween(graphEngine));
                }
            }
            else
            {
                new UnityTask(Tween(graphEngine));
            }
        }
Пример #3
0
 //-------------------------------------------------------------------------
 // Auto Node API
 //-------------------------------------------------------------------------
 public override void Handle(GraphEngine graphEngine)
 {
     if (graphEngine.LockNode())
     {
         new UnityTask(Jump(graphEngine));
     }
 }
Пример #4
0
        /// <summary>
        /// Waits the predetermined number of seconds before playing the next node.
        /// </summary>
        private IEnumerator Wait(GraphEngine graphEngine)
        {
            if (graphEngine.LockNode())
            {
                yield return(new WaitForSeconds(Seconds));

                graphEngine.UnlockNode();
            }
        }
Пример #5
0
 //-------------------------------------------------------------------------
 // Auto Node API
 //-------------------------------------------------------------------------
 public override void Handle(GraphEngine graphEngine)
 {
     if (PauseGraph)
     {
         if (graphEngine.LockNode())
         {
             new UnityTask(Shake(graphEngine));
         }
     }
     else
     {
         GameManager.CurrentTargettingCamera.CameraShake(Duration, DelayBefore, Intensity);
     }
 }
Пример #6
0
 //-------------------------------------------------------------------------
 // Auto Node API
 //-------------------------------------------------------------------------
 public override void Handle(GraphEngine graphEngine)
 {
     if (target != null)
     {
         if (PauseGraph)
         {
             if (graphEngine.LockNode())
             {
                 new UnityTask(TryWalk(graphEngine));
             }
         }
         else
         {
             new UnityTask(TryWalk(graphEngine));
         }
     }
     else
     {
         Debug.LogWarning("WalkToPosition Node in graph \"" + graphEngine.GetCurrentGraph().GraphName + "\" is missing a target position for the player to walk to. Go into the AutoGraph editor for this graph and find the node with the missing target.");
     }
 }