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);
 }
Exemple #2
0
 void OnConstraintAdded(ConstraintComponent<CharacterController> c)
 {
     c.Constraint.World = m_World;
     m_World.AddConstraint(c.Constraint);
 }
Exemple #3
0
 void OnConstraintRemoved(ConstraintComponent<CharacterController> c)
 {
     m_World.RemoveConstraint(c.Constraint);
 }
Exemple #4
0
 public void ConstraintComponentTest()
 {
     Assert.IsTrue(ConstrainedComponent.Assert(ITERATION_CNT));
     Assert.IsTrue(ConstraintComponent.Assert(ITERATION_CNT));
     Assert.IsTrue(ConsumerComponent.Assert(ITERATION_CNT));
 }