check if enabled unity

C#
if (gameObject.activeSelf )
{
 	print("It is Activated.")
}
Source

Also in C#: