// =====================================================================
// Copyright 2013-2017 Fluffy Underware
// All rights reserved
//
// http://www.fluffyunderware.com
// =====================================================================
using System;
using UnityEngine;
using System.Collections;
using FluffyUnderware.DevTools.Extensions;
namespace FluffyUnderware.DevTools
{
///
/// A MonoBehaviour with a version number, useful to handle upgrades if needed
///
public abstract class DTVersionedMonoBehaviour : MonoBehaviour
{
[SerializeField, HideInInspector]
string m_Version;
///
/// Gets the version of this component
///
public string Version
{
get { return m_Version; }
protected set { m_Version = value; }
}
///
/// Destroys the gameobject
///
[Obsolete("Use ObjectExt.Destroy(...) instead")]
public void Destroy()
{
gameObject.Destroy(false, true);
}
}
}