26 lines
684 B
C#
26 lines
684 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[ExecuteInEditMode]
|
|
public class UAVObjectID : MonoBehaviour
|
|
{
|
|
[HideInInspector]
|
|
public string id = "0";
|
|
|
|
private void Update()
|
|
{
|
|
//if (base.gameObject.hideFlags != (HideFlags.HideInHierarchy | HideFlags.NotEditable))
|
|
//{
|
|
// base.gameObject.hideFlags = HideFlags.HideInHierarchy | HideFlags.NotEditable;
|
|
// base.hideFlags = HideFlags.HideInInspector;
|
|
//}
|
|
|
|
if (base.gameObject.hideFlags != HideFlags.None)
|
|
{
|
|
base.gameObject.hideFlags = HideFlags.None;
|
|
base.hideFlags = HideFlags.None;
|
|
}
|
|
}
|
|
}
|