Esempio n. 1
0
 void Update()
 {
     for (int l = 0; l < n_list.Count; l++)
     {
         HaveList list = n_list[l];
         for (int i = 0; i < list.o_List.Count; i++)
         {
             ttt += Time.smoothDeltaTime;
             Action action = list.o_List[i];
             if (action.n_update(Time.smoothDeltaTime) == true)
             {
                 list.o_List.Remove(action);
             }
             break;
         }
     }
 }
Esempio n. 2
0
 void _updateAction()
 {
     for (int l = 0; l < n_list.Count; l++)
     {
         HaveList list = n_list[l];
         if (list == null)
         {
             n_list.Remove(list);
         }
         else
         {
             for (int i = 0; i < list.o_List.Count;)
             {
                 Action action = list.o_List[i];
                 if (action.n_update(Time.smoothDeltaTime) == true)
                 {
                     list.o_List.Remove(action);
                 }
                 break;
             }
         }
     }
 }
Esempio n. 3
0
 void Awake()
 {
     have = GetComponent <HaveList>();
     GameMng.Data.n_list.Add(have);
 }
Esempio n. 4
0
 void Start()
 {
     have = GetComponent <HaveList>();
     GameMng.Data.n_list.Add(have);
     _StartPos = transform.localPosition;
 }