11/02/04 04:11:01 HYjSZ9LX
>>388
JavaScriptです。
static private var instance : ScriptFile = null:
function Awake()
{
if (!instance) Setup();
else Destroy(gameObject);
}
private function Setup()
{
if (!instance) instance = this;
Application.LoadLevel(this);
// 以下その他のAwakeの初期化
}
static public function Delete()
{
Destroy(instance);
instance = null;
}