Exemplo n.º 1
0
        void OnTriggerEnter2D(Collider2D collider2d)
        {
            var e = new TriggerEnter2DEvent(egoComponent, collider2d.gameObject.GetComponent <EgoComponent>(),
                                            collider2d);

            EgoEvents <TriggerEnter2DEvent> .AddEvent(e);
        }
Exemplo n.º 2
0
 void OnTriggerEnter2D( Collider2D collider2d )
 {
     var e = new TriggerEnter2DEvent( egoComponent, collider2d.gameObject.GetComponent<EgoComponent>(), collider2d );
     EgoEvents<TriggerEnter2DEvent>.AddEvent( e );
 }