Beispiel #1
0
        public List <EventNode> GetData(EventNodeScriptableObject eventNodeScriptable)
        {
            List <EventNode> rets = new List <EventNode>();

            if (eventNodeScriptable)
            {
                rets.AddRange(eventNodeScriptable.eventNodes);
                rets.AddRange(eventNodeScriptable.animationNodes);
                rets.AddRange(eventNodeScriptable.playEffectNodes);
                rets.AddRange(eventNodeScriptable.fireBulletNodes);
                rets.AddRange(eventNodeScriptable.attackNodes);
                rets.AddRange(eventNodeScriptable.attackCircleNodes);
                rets.AddRange(eventNodeScriptable.triggerAnimationNodes);
                rets.AddRange(eventNodeScriptable.triggerEventNodes);
            }
            return(rets);
        }
Beispiel #2
0
 public void SetData(IList <EventNode> datas, EventNodeScriptableObject eventNodeScriptable)
 {
     foreach (var k in datas)
     {
         if (k is PlayAnimationNode)
         {
             eventNodeScriptable.animationNodes.Add(k as PlayAnimationNode);
         }
         else if (k is PlayEffectNode)
         {
             eventNodeScriptable.playEffectNodes.Add(k as PlayEffectNode);
         }
         else if (k is FireBulletNode)
         {
             eventNodeScriptable.fireBulletNodes.Add(k as FireBulletNode);
         }
         else if (k is TriggerAnimationNode)
         {
             eventNodeScriptable.triggerAnimationNodes.Add(k as TriggerAnimationNode);
         }
         else if (k is TriggerEffectNode)
         {
             eventNodeScriptable.triggerEventNodes.Add(k as TriggerEffectNode);
         }
         else if (k is AttackNode)
         {
             eventNodeScriptable.attackNodes.Add(k as AttackNode);
         }
         else if (k is AttackCircleNode)
         {
             eventNodeScriptable.attackCircleNodes.Add(k as AttackCircleNode);
         }
         else
         {
             eventNodeScriptable.eventNodes.Add(k);
         }
     }
 }