Exemple #1
0
        private void OnCollisionStay(Collision collision)
        {
            var collider         = collision.collider;
            var force            = 0;
            var relativeVelocity = collision.relativeVelocity;
            var impulse          = collision.impulse;

            ECSEvent.Create <CollisionStayEvent>(gameObject, collider, force, relativeVelocity, impulse);
        }
Exemple #2
0
 private void OnDisable()
 {
     ECSEvent.Create <OnDisableEvent>(gameObject);
 }