IMHOTEP Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
Assets
Core
UI
ToolUIAnchor.cs
1
using
UnityEngine;
2
using
System.Collections;
3
6
public
class
ToolUIAnchor
: MonoBehaviour {
7
8
public
static
ToolUIAnchor
instance {
private
set;
get
; }
9
10
public
void
OnEnable()
11
{
12
if
(instance != null) {
13
throw
(
new
System.Exception (
"Error: Cannot create more than one instance of ToolUIAnchor!"
));
14
}
15
instance =
this
;
16
}
17
public
void
OnDisable()
18
{
19
if
(
this
== instance )
20
{
21
instance = null;
22
}
23
}
24
}
ToolUIAnchor
Definition:
ToolUIAnchor.cs:6
Generated by
1.8.6