@hology/core 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import { VfxActor } from './vfx-actor.js';
|
|
2
2
|
import { ActorProvider } from "../../scene/materializer.js";
|
3
3
|
import { VfxAsset } from "../../scene/model.js";
|
4
4
|
import { Object3D } from 'three';
|
5
|
-
import { BaseActor } from 'gameplay/index.js';
|
5
|
+
import { BaseActor } from '../../gameplay/index.js';
|
6
6
|
export declare class VisualEffect {
|
7
7
|
private actorProvider;
|
8
8
|
private asset;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{VfxActor as t}from"./vfx-actor.js";import{BaseActor as s}from"gameplay/index.js";export class VisualEffect{constructor(t,s){this.actorProvider=t,this.asset=s}async spawn(a){const o=await this.actorProvider.create(t);return a instanceof s?a.object.add(o.object):a.add(o.object),await o.fromAsset(this.asset),o}}
|
1
|
+
import{VfxActor as t}from"./vfx-actor.js";import{BaseActor as s}from"../../gameplay/index.js";export class VisualEffect{constructor(t,s){this.actorProvider=t,this.asset=s}async spawn(a){const o=await this.actorProvider.create(t);return a instanceof s?a.object.add(o.object):a.add(o.object),await o.fromAsset(this.asset),o}}
|
2
2
|
/*
|
3
3
|
* Copyright (©) 2023. All rights reserved.
|
4
4
|
* See the LICENSE.md file for details.
|