protected override void OnRegistered() { base.OnRegistered(); _controllers = new ControllerContainer(this, _material); _materialReplacer = new PhysicMaterialReplacer(transform, _material); _warper = new RigidbodyWarper(_manager, transform, _rigidbody, _material.GraphicalReturnTime); _childrenArray = GetComponentsInChildren <Transform>(true); _contactMode = ContactMode.NORMAL; updateLayer(); }
protected override void OnRegistered() { base.OnRegistered(); _controllers = new ControllerContainer(this, _material); _materialReplacer = new PhysicMaterialReplacer(transform, _material); _warper = new RigidbodyWarper(_manager, transform, _rigidbody, _material.GraphicalReturnTime); _childrenArray = GetComponentsInChildren<Transform>(true); _contactMode = ContactMode.NORMAL; updateLayer(); }