Esempio n. 1
0
        protected void SendBulletTargetHitEvent(Entity bulletEntity, BulletComponent bullet, Entity target)
        {
            BulletTargetHitEvent eventInstance = new BulletTargetHitEvent {
                Position = bullet.Position,
                Target   = target
            };

            base.ScheduleEvent(eventInstance, bulletEntity);
        }
 public void Explosion(BulletTargetHitEvent e, Node node, [JoinByTank] WeaponNode weaponNode)
 {
     this.InstantiateExplosion(e, weaponNode);
 }