Change components to use timer component (#2426)
* Change components to use timer component * Fix old usages of tokens
This commit is contained in:
@@ -8,6 +8,7 @@ using Robust.Server.GameObjects;
|
||||
using Robust.Server.GameObjects.EntitySystems;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects.Components.Timers;
|
||||
using Robust.Shared.GameObjects.Systems;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.IoC;
|
||||
@@ -107,7 +108,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
int animLayer = sprite.AddLayerWithState("flashing");
|
||||
_flashing = true;
|
||||
|
||||
Timer.Spawn(400, () =>
|
||||
Owner.SpawnTimer(400, () =>
|
||||
{
|
||||
sprite.RemoveLayer(animLayer);
|
||||
_flashing = false;
|
||||
|
||||
Reference in New Issue
Block a user