mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
19 lines
457 B
C#
19 lines
457 B
C#
using MiraAPI.Modifiers.Types;
|
|
|
|
namespace MiraAPI.Example;
|
|
|
|
[RegisterModifier]
|
|
public class ModifierExample : TimedModifier
|
|
{
|
|
public override string ModifierName => "Timed modifier example";
|
|
public override float Duration => 1.5f;
|
|
public override bool AutoStart => true;
|
|
|
|
private System.Random _rand = new();
|
|
|
|
public override void OnTimerComplete()
|
|
{
|
|
Player.SetColor((byte)_rand.Next(0, 18));
|
|
StartTimer();
|
|
}
|
|
} |