From 04d939e44b4a8418fde51d5f3895904d5dabd176 Mon Sep 17 00:00:00 2001 From: shieldgenerator7 Date: Thu, 12 Sep 2024 01:00:37 -0400 Subject: [PATCH] #610 make "static until" scripts only once per game object --- Assets/Scripts/Mechanics/StaticUntilTouched.cs | 1 + Assets/Scripts/StaticUntilSwapped.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Assets/Scripts/Mechanics/StaticUntilTouched.cs b/Assets/Scripts/Mechanics/StaticUntilTouched.cs index b0c44ab4e..238f9402f 100644 --- a/Assets/Scripts/Mechanics/StaticUntilTouched.cs +++ b/Assets/Scripts/Mechanics/StaticUntilTouched.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using UnityEngine; +[DisallowMultipleComponent] public class StaticUntilTouched : SavableMonoBehaviour, IBlastable { [SerializeField] diff --git a/Assets/Scripts/StaticUntilSwapped.cs b/Assets/Scripts/StaticUntilSwapped.cs index 3642d636a..fcaa4d159 100644 --- a/Assets/Scripts/StaticUntilSwapped.cs +++ b/Assets/Scripts/StaticUntilSwapped.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using UnityEngine; +[DisallowMultipleComponent] public class StaticUntilSwapped : SavableMonoBehaviour, ISwappable { [SerializeField]