protected override void Awake() { base.Awake(); UpdateCurrentFollowSmoothness(); _panTarget = new GameObject("PC2DPanTarget").transform; ProCamera2D.AddPreMover(this); ProCamera2D.AddSizeDeltaChanger(this); }
override protected void Awake() { base.Awake(); if (ProCamera2D == null) { return; } _initialCamSize = ProCamera2D.ScreenSizeInWorldCoordinates.y * .5f; _previousCamSize = _initialCamSize; _previousCameraPosition = VectorHV(Vector3H(ProCamera2D.LocalPosition), Vector3V(ProCamera2D.LocalPosition)); ProCamera2D.AddSizeDeltaChanger(this); }