Beispiel #1
0
    private void Update()
    {
        if (Player.Position.y > topPos.y)
        {
            if (sectorPassed == false)
            {
                sectorPassed = true;
                GameManager.instance.Level++;
            }

            if (CameraUtility.CheckInCameraSpace(topPos) == false &&
                CameraUtility.CheckInCameraSpace(bottomPos) == false)
            {
                gameObject.SetActive(false);
                GameManager.instance.ResetQuadrant();
            }
        }
    }