Skip to content

Commit

Permalink
Fixed [StaticConstructorOnStartup] warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicguru committed Jul 10, 2020
1 parent dd64189 commit 56b8e64
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace AntimatterAnnihilation.Buildings
{
[StaticConstructorOnStartup]
public class Building_AlloyFusionMachine : Building_MultiRefuelable, IConditionalGlower
{
public const int TICKS_PER_FRAME = 3;
Expand Down
1 change: 1 addition & 0 deletions Source/AntimatterAnnihilation/Buildings/MBDTop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace AntimatterAnnihilation.Buildings
{
[StaticConstructorOnStartup]
public class MBDTop : AATurretTop
{
const float RATIO = 31f / 280f;
Expand Down
1 change: 1 addition & 0 deletions Source/AntimatterAnnihilation/Buildings/ThunderGunTop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace AntimatterAnnihilation.Buildings
{
[StaticConstructorOnStartup]
public class ThunderGunTop : AATurretTop
{
const float RATIO = 57f / 257f;
Expand Down
2 changes: 2 additions & 0 deletions Source/AntimatterAnnihilation/Effects/EffectManagers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace AntimatterAnnihilation.Effects
{
[StaticConstructorOnStartup]
static class ExplosionEffectManager
{
public static GameObject Prefab;
Expand Down Expand Up @@ -36,6 +37,7 @@ public static void Tick()
}
}

[StaticConstructorOnStartup]
static class RailgunEffectSpawner
{
public static GameObject Prefab;
Expand Down

0 comments on commit 56b8e64

Please sign in to comment.