Beispiel #1
0
    public void CheckGameField_PointOffTheHeight_01()
    {
        Camera     camera           = Camera.main;
        CameraSize cameraSizeScript = new CameraSize();

        Vector3 point          = new Vector3(0, 10, 0);
        bool    expectedResult = true;

        bool result = cameraSizeScript.IsOffTheFieldHeight(point, camera);

        Assert.AreEqual(expectedResult, result);
    }
Beispiel #2
0
 public bool IsOffTheFieldHeight(Vector3 pos) => cameraSizeScript.IsOffTheFieldHeight(pos, Camera.main);