コード例 #1
0
 public void OnFollowerMove(object sender, PathFollowerEventArg arg)
 {
     foreach (PathEvent e in _events)
     {
         if (e == null || e._end)
         {
             continue;
         }
         else if (e._start)
         {
             //force end
             if (arg._nodeIdx > e._triggerNodeIdx)
             {
                 e.EndEvent();
             }
         }
         else
         {
             if (arg._nodeIdx == e._triggerNodeIdx && arg._tngOffset > e._triggerTngOffset)
             {
                 e.StartEvent();
             }
         }
     }
 }
コード例 #2
0
 public void OnFollowerMove(object sender, PathFollowerEventArg arg)
 {
     foreach (PathEvent e in _events)
     {
         if (e == null || e._end)
             continue;
         else if (e._start)
         {
             //force end
             if (arg._nodeIdx > e._triggerNodeIdx)
                 e.EndEvent();
         }
         else
         {
             if (arg._nodeIdx == e._triggerNodeIdx && arg._tngOffset > e._triggerTngOffset)
                 e.StartEvent();
         }
     }
 }