The hack
The only purpose for now for having this Script is to make FrameworkObject not destroyable,
so it can walk from scene to scene
This is done by calling DontDestroyOnLoad() in the Awake() method

C# | Visual Basic | Visual C++ |
public sealed class FrameworkMonoBehaviour : MonoBehaviour
Public NotInheritable Class FrameworkMonoBehaviour _ Inherits MonoBehaviour
public ref class FrameworkMonoBehaviour sealed : public MonoBehaviour

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | FrameworkMonoBehaviour()()()() | Initializes a new instance of the FrameworkMonoBehaviour class |
![]() | active | Obsolete. (Inherited from Component.) |
![]() | animation | (Inherited from Component.) |
![]() | audio | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object) | (Inherited from Component.) |
![]() | BroadcastMessage(String) | (Inherited from Component.) |
![]() | BroadcastMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | camera | (Inherited from Component.) |
![]() | CancelInvoke()()()() | (Inherited from MonoBehaviour.) |
![]() | CancelInvoke(String) | (Inherited from MonoBehaviour.) |
![]() | collider | (Inherited from Component.) |
![]() | collider2D | (Inherited from Component.) |
![]() | CompareTag(String) | (Inherited from Component.) |
![]() | constantForce | (Inherited from Component.) |
![]() | enabled | (Inherited from Behaviour.) |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | gameObject | (Inherited from Component.) |
![]() | GetComponent(Type) | (Inherited from Component.) |
![]() | GetComponent``1()()()() | (Inherited from Component.) |
![]() | GetComponent(String) | (Inherited from Component.) |
![]() | GetComponentInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentInChildren``1()()()() | (Inherited from Component.) |
![]() | GetComponents(Type) | (Inherited from Component.) |
![]() | GetComponents``1()()()() | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type, Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1(Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren``1()()()() | (Inherited from Component.) |
![]() | GetHashCode()()()() | (Inherited from Object.) |
![]() | GetInstanceID()()()() | (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | guiElement | Obsolete. (Inherited from Component.) |
![]() | guiText | (Inherited from Component.) |
![]() | guiTexture | (Inherited from Component.) |
![]() | hideFlags | (Inherited from Object.) |
![]() | hingeJoint | (Inherited from Component.) |
![]() | Invoke(String, Single) | (Inherited from MonoBehaviour.) |
![]() | InvokeRepeating(String, Single, Single) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking(String) | (Inherited from MonoBehaviour.) |
![]() | IsInvoking()()()() | (Inherited from MonoBehaviour.) |
![]() | light | (Inherited from Component.) |
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | name | (Inherited from Object.) |
![]() | networkView | (Inherited from Component.) |
![]() | particleEmitter | (Inherited from Component.) |
![]() | particleSystem | (Inherited from Component.) |
![]() | renderer | (Inherited from Component.) |
![]() | rigidbody | (Inherited from Component.) |
![]() | rigidbody2D | (Inherited from Component.) |
![]() | SendMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessage(String, Object) | (Inherited from Component.) |
![]() | SendMessage(String) | (Inherited from Component.) |
![]() | SendMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object) | (Inherited from Component.) |
![]() | SendMessageUpwards(String) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, SendMessageOptions) | (Inherited from Component.) |
![]() | StartCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String, Object) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine_Auto(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StopAllCoroutines()()()() | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | tag | (Inherited from Component.) |
![]() | ToString()()()() | (Inherited from Object.) |
![]() | transform | (Inherited from Component.) |
![]() | useGUILayout | (Inherited from MonoBehaviour.) |

Object | |||||
![]() | Object | ||||
![]() | Component | ||||
![]() | Behaviour | ||||
![]() | MonoBehaviour | ||||
![]() | FrameworkMonoBehaviour |