Exemple #1
0
 public void Update()
 {
     if (active)
     {
         for (int t = 0; t < components.Count; t++)
         {
             TestableComponent component = components[t];
             component.OnUpdate();
         }
     }
 }
Exemple #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);
        }
Exemple #3
0
 public void registerComponent(Testable.TestableComponent component)
 {
     components.Add(component);
 }