Пример #1
0
    void Update()
    {
        if (_obOne != null)
        {
            if (_obOne.y >= game.height)
            {
                _obOne.LateDestroy();
                _obOne = null;
            }
        }

        if (_opCar != null)
        {
            if (_opCar.y >= game.height)
            {
                _opCar.LateDestroy();
                _opCar = null;
            }
        }
    }