diff --git a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs index 61c5a2dcd..892da6df3 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs @@ -109,11 +109,6 @@ public interface IInitializableBehavior void Initialize(); } -public interface IInteractiveBehavior -{ - bool Exposed { get; } -} - public interface IAlwaysUpdatedBehavior { void Update(float delta); diff --git a/Assets/Scripts/ServerShared/Entity.cs b/Assets/Scripts/ServerShared/Entity.cs index 4faaa67ba..33ec350bc 100644 --- a/Assets/Scripts/ServerShared/Entity.cs +++ b/Assets/Scripts/ServerShared/Entity.cs @@ -2790,15 +2790,4 @@ public class BehaviorGroup return null; } - - public T GetExposed() where T : Behavior, IInteractiveBehavior - { - foreach (var b in Behaviors) - { - if (!(b is T s) || !((IInteractiveBehavior)b).Exposed) continue; - return s; - } - - return null; - } } \ No newline at end of file