public override IEnumerable<Barebones.Dependencies.IDependency> GetDependencies() { yield return new Dependency<ConstraintComponent<CharacterController>>(item => m_Controller = item); yield return new Dependency<KeyboardReader>(item => m_Reader = item); }
void OnConstraintAdded(ConstraintComponent<CharacterController> c) { c.Constraint.World = m_World; m_World.AddConstraint(c.Constraint); }
void OnConstraintRemoved(ConstraintComponent<CharacterController> c) { m_World.RemoveConstraint(c.Constraint); }
public void ConstraintComponentTest() { Assert.IsTrue(ConstrainedComponent.Assert(ITERATION_CNT)); Assert.IsTrue(ConstraintComponent.Assert(ITERATION_CNT)); Assert.IsTrue(ConsumerComponent.Assert(ITERATION_CNT)); }