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