void OnDestroy() { // ※破棄時に、登録した実体の解除を行なっている // 自身がインスタンスなら登録を解除 if (this == instanceScWarpScences) { _instanceScWarpScences = null; } }
// Start is called before the first frame update void Start() { this.scWrpScn = lgc.GetComponentScriptInGameObject <ScWarpScences>(CsNormalLevelDesignOfCommon.GAMEOBJECTS_MANAGE_OBJECT); this.scOprPlyer = lgc.GetComponentScriptInGameObject <ScOperationPlayer>(CsNormalLevelDesignOfBall.GAMEOBJECTS_SP_BALL); this.scTimer = lgc.GetComponentScriptInGameObject <ScTimer>(CsNormalLevelDesignOfTimer.GAMEOBJECTS_TIMER); }
// Start is called before the first frame update void Start() { this.scWrpScn = lgc.GetComponentScriptInGameObject <ScWarpScences>(CsNormalLevelDesignOfCommon.GAMEOBJECTS_MANAGE_OBJECT); this.keyPushFlag = false; }