Exemple #1
0
    protected override void nextBlockObject()
    {
        _selectFlight = _bullectOp.flightType(_currentCount++);
        if (_selectFlight == null)
        {
            _nextObjectChack = false;
            return;
        }

        Vector3 endPosition = Vector3.zero;

        if (_RandomAngle)
        {
            endPosition         = _selfTF.eulerAngles;
            endPosition.z       = Random.Range(0, 360);
            _selfTF.eulerAngles = endPosition;
        }

        _selectFlight.resetValue(_nonresetValue);

        _drowPoint     = Vector3.zero;
        _chackDrowTime = _selectFlight.drowTIme;
        _smoothOption  = _selectFlight.smoothOption;
        _currentTime   = 0;

        if (_currentCount < _bullectOp.maxFlightTypeCount && _chackDrowTime > 0)
        {
            _nextObjectChack = true;
        }
        else
        {
            _nextObjectChack = false;
        }

        this.enabled = true;
        controlMoveOption();
    }