using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
using UnityEditor.SceneManagement;
#endif
[ExecuteAlways]
public class EditorLightToggleScript : MonoBehaviour {
	#if UNITY_EDITOR
    // Start is called before the first frame update
    void Start() {

		if (EditorApplication.isPlayingOrWillChangePlaymode) {
			gameObject.hideFlags = HideFlags.None;
			gameObject.SetActive (false);
		} else {
			gameObject.hideFlags = HideFlags.HideInHierarchy;
			gameObject.SetActive (true);
		}
	}

	void OnValidate () {
		gameObject.hideFlags = HideFlags.HideInHierarchy;
	}
	#endif
}
