FiE-Game/Assets/Scripts/Fie/Utility/FiePostProcessSegiDisabler.cs

17 lines
319 B
C#
Raw Normal View History

2018-11-20 20:10:49 +01:00
using UnityEngine;
namespace Fie.Utility
{
public class FiePostProcessSegiDisabler : FiePostProcessContainer
{
public override void PostHook(GameObject targetObject)
{
SEGI component = targetObject.transform.GetComponent<SEGI>();
if (!(component == null))
{
component.enabled = false;
}
}
}
}