public virtual void Awake() {
if (Application.isPlaying) {
if (_Instance != null && _Instance != this) {
Destroy (this.gameObject);
return;
} else {
_Instance = this;
}
}
if (firstPassFlag) {
gameObject.transform.position = Vector3.zero;
gameObject.name = "UIWindow";
firstPassFlag = false;
}
}
#endregion