Esempio n. 1
0
    public override void Stop(bool forceEnd = false)
    {
        if (!_isFinished)
        {
            if (!_isVisible)
            {
                _colorAdapter.SetAlpha(1.0f, _isRecursive);

                _isVisible = true;
            }

            _isFinished = true;
        }
    }
Esempio n. 2
0
    public override void Play(GameObject target)
    {
        // Set color adapter
        _colorAdapter = ColorAdapter.Get(target);

        // Set time
        _time = 0;

        // Set visible
        _isVisible = true;

        // Set not finished
        _isFinished = false;

        // Show
        _colorAdapter.SetAlpha(1.0f, _isRecursive);
    }
Esempio n. 3
0
 public override void Reset()
 {
     _colorAdapter.SetAlpha(_helper.Start, _isRecursive);
 }