Add toggle for showing/hiding the character in RenderContainerComponent and implement binding to PlayerModelService
This commit is contained in:
+11
@@ -102,6 +102,10 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
|
||||
this.particleManagerService.onlyIntersectingParticles = !this.particleManagerService.onlyIntersectingParticles;
|
||||
}
|
||||
|
||||
public toggleShowCharacter(): void {
|
||||
this.playerModelService.showCharacter = !this.playerModelService.showCharacter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current plane orientation
|
||||
*/
|
||||
@@ -116,6 +120,13 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
|
||||
return this.particleManagerService.onlyIntersectingParticles;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the value indicating whether the character is being rendered.
|
||||
*/
|
||||
public get showCharacter(): boolean {
|
||||
return this.playerModelService.showCharacter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the plane orientation
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user