Beispiel #1
0
 public void Update()
 {
     if (active)
     {
         for (int t = 0; t < components.Count; t++)
         {
             TestableComponent component = components[t];
             component.OnUpdate();
         }
     }
 }
Beispiel #2
0
        public T getComponent <T>() where T : class
        {
            for (int t = 0; t < components.Count; t++)
            {
                TestableComponent component = components[t];
                if (component is T)
                {
                    return(component as T);
                }
            }

            return(null);
        }
Beispiel #3
0
 public void registerComponent(Uniject.TestableComponent component)
 {
     components.Add(component);
 }