You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 23:46:19 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { RoomObjectVariable } from '@nitrots/api';
|
||||
import { FurnitureAnimatedVisualization } from './FurnitureAnimatedVisualization';
|
||||
|
||||
export class FurnitureSoundBlockVisualization extends FurnitureAnimatedVisualization
|
||||
{
|
||||
private _internalFrameIncreaseCounter: number = 0;
|
||||
|
||||
protected updateAnimations(scale: number): number
|
||||
{
|
||||
this._internalFrameIncreaseCounter = (this._internalFrameIncreaseCounter + this.object.model.getValue<number>(RoomObjectVariable.FURNITURE_SOUNDBLOCK_RELATIVE_ANIMATION_SPEED));
|
||||
this._frameIncrease = this._internalFrameIncreaseCounter;
|
||||
this._internalFrameIncreaseCounter = (this._internalFrameIncreaseCounter - this._frameIncrease);
|
||||
|
||||
return super.updateAnimations(scale);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user