Пример #1
0
 public BodyCollisionEventArgs(BodyComponent bodyComponentA, BodyComponent bodyComponentB, Contact contact)
 {
     BodyComponentA = bodyComponentA;
     BodyComponentB = bodyComponentB;
     Contact = contact;
     IsColliding = true;
 }
Пример #2
0
        protected override void StartCore()
        {
            _bodyComponent = GameObject.GetComponent<BodyComponent>();
            _rectRenderer = GameObject.GetComponent<RectRenderer>();
            _animatedSpriteComponent = GameObject.GetComponent<AnimatedSpriteComponent>();

            //TODO: If null => GameObject.OnComponentAdded += .... set the _bodyComponent
        }