예제 #1
0
 private void setPulsatorSpeed()
 {
     if (_scalePulsator != null)
     {
         _scalePulsator.SetSpeed(3F);
     }
 }
        private void OnEnable()
        {
            if (_pulsator == null)
            {
                _pulsator = new Pulsator();
            }

            _pulsator.SetSpeed(speed);

            _pulsator.pulseValue = pulseHeight;
            _pulsator.warmValue  = warmHeight;
            _pulsator.restValue  = restHeight;
        }
예제 #3
0
    private void OnEnable()
    {
        if (_pulsator == null)
        {
            _pulsator = new Pulsator();
        }

        _pulsator.SetSpeed(speed);

        _pulsator.pulse  = pulseHeight;
        _pulsator.active = activeHeight;
        _pulsator.rest   = restHeight;
    }