Added the Eagle Eye button, It's a standalone prefab that can be added to other canvases.
This commit is contained in:
@@ -49,6 +49,10 @@ public class cameraSwitcherNailBird : MonoBehaviour
|
||||
{
|
||||
elapsed += Time.deltaTime;
|
||||
cam.Lens.OrthographicSize = Mathf.Lerp(startSize, targetSize, elapsed / duration);
|
||||
if (confiner2D != null)
|
||||
{
|
||||
confiner2D.InvalidateBoundingShapeCache();
|
||||
}
|
||||
yield return null;
|
||||
}
|
||||
cam.Lens.OrthographicSize = targetSize;
|
||||
|
||||
Reference in New Issue
Block a user