public void CheckGameField_PointOffTheWidth_02() { Camera camera = Camera.main; CameraSize cameraSizeScript = new CameraSize(); Vector3 point = new Vector3(0, 0, 0); bool expectedResult = false; bool result = cameraSizeScript.IsOffTheFieldWidth(point, camera); Assert.AreEqual(expectedResult, result); }
public bool IsOffTheFieldWidth(Vector3 pos) => cameraSizeScript.IsOffTheFieldWidth(pos, Camera.main);