Inheritance: UnityEngine.MonoBehaviour
示例#1
0
文件: pb_Scene.cs 项目: FAL2009/giles
        void Start()
        {
            pb_MetaDataComponent md = gameObject.GetComponent <pb_MetaDataComponent>();

            if (md == null)
            {
                md = gameObject.AddComponent <pb_MetaDataComponent>();
            }
        }
示例#2
0
		void OnEnable()
		{
			data = (pb_MetaDataComponent) target;
			diff = data.metadata.componentDiff;
		}