//tk2dCamera cam public void Initalize(tk2dCamera cam){ curtain = transform.GetChild(0).GetComponent<Curtain_>(); ani = transform.GetChild(1).GetComponent<LoadingAni_>(); curtain.Initialize(cam.nativeResolutionWidth, cam.nativeResolutionHeight, cam.CameraSettings.orthographicPixelsPerMeter / 20); ani.Initialize(cam.nativeResolutionWidth, cam.nativeResolutionHeight, cam.CameraSettings.orthographicPixelsPerMeter); enabled = true; }
//tk2dCamera cam public void Initalize(tk2dCamera cam){ isInit = true; enabled = true; curtain = transform.GetChild(0).GetComponent<Curtain_>(); ani = transform.GetChild(1).GetComponent<LoadingAni_>(); curtain.Initialize(cam.forceResolution.x, cam.forceResolution.y, cam.CameraSettings.orthographicPixelsPerMeter); ani.Initialize(cam.forceResolution.x, cam.forceResolution.y, cam.CameraSettings.orthographicPixelsPerMeter); }