コード例 #1
0
        public void Handle(GameEvent evt, Entity entity)
        {
            var vehicle = (VehicleEntity)entity;

            if (_matcher.IsMatched(vehicle.vehicleType.VType))
            {
                DoHandle(evt, vehicle);
            }
        }
コード例 #2
0
        public void Update(Entity entity)
        {
            var vehicle = (VehicleEntity)entity;

            if (_matcher.IsMatched(vehicle.vehicleType.VType) &&
                vehicle.IsActiveSelf())
            {
                DoUpdate(vehicle);
            }
        }