예제 #1
0
    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);
    }
예제 #2
0
 public bool IsOffTheFieldWidth(Vector3 pos) => cameraSizeScript.IsOffTheFieldWidth(pos, Camera.main);