improvements
This commit is contained in:
@@ -48,11 +48,30 @@ public class FxService
|
||||
catch { }
|
||||
}
|
||||
|
||||
public async ValueTask TriggerIceShatterAsync(string position)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _js.InvokeVoidAsync("FaraonFx.triggerIceShatter", position);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public async ValueTask PlayHornikChimeAsync()
|
||||
{
|
||||
try { await _js.InvokeVoidAsync("FaraonFx.playHornikChime"); } catch { }
|
||||
}
|
||||
|
||||
public async ValueTask PlayLeafShieldAsync(string? position = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _js.InvokeVoidAsync("FaraonFx.playLeafShield");
|
||||
await _js.InvokeVoidAsync("FaraonFx.triggerLeafParticles", null, null, 40);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public async ValueTask PlayBurnExplosionAsync()
|
||||
{
|
||||
try
|
||||
@@ -123,6 +142,15 @@ public class FxService
|
||||
catch { }
|
||||
}
|
||||
|
||||
public async ValueTask SetSpeedLevelAsync(int level)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _js.InvokeVoidAsync("FaraonFx.setSpeedLevel", level);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public async ValueTask PlaySelectStepAsync(int step)
|
||||
{
|
||||
try { await _js.InvokeVoidAsync("FaraonFx.playSelectStep", step); } catch { }
|
||||
|
||||
Reference in New Issue
Block a user