예제 #1
0
        public void SetEvent(XmlEvent evt)
        {
            actRun = null;

            theEvent = evt;// AppMgr.getEvent(actRun.eventID);


            if (theEvent != null)
            {
                theEvent.Start();
            }
            else
            {
                Debug.Log("Event NULL");
            }
        }
예제 #2
0
        public void SetEvent(_run_event act)
        {
            actRun = act;

            theEvent = XmlStage.GetEvent(actRun.eventID);


            if (theEvent != null)
            {
                theEvent.Start();
            }
            else
            {
                Debug.Log("Event NULL");
            }
        }
예제 #3
0
 private void LateUpdate()
 {
     if (theEvent != null)
     {
         theEvent.update();
         if (theEvent.curAction == theEvent.actList.Count)
         {
             if (actRun != null && actRun.mode == 1)
             {
                 theEvent.Start();
             }
             else
             {
                 Destroy(this);
             }
         }
     }
 }