示例#1
0
        // -------------------------------------------------------------------------------------------
        /// <summary>
        /// Handles the overwrite behavior for the tween.
        /// </summary>
        /// <param name="behavior"></param>
        private void HandleOverwrite(Overwrite behavior)
        {
            if (_manager == null || _overwrite != behavior)
            {
                return;
            }

            switch (_overwrite)
            {
            case Overwrite.OVERWRITE_DEFAULT:
                _manager.OverwriteDefault(this);
                break;

            case Overwrite.OVERWRITE_ALL:
                _manager.OverwriteAllImmediately(this);
                break;

            case Overwrite.OVERWRITE_ALL_ON_START:
                _manager.OverwriteAllOnStart(this);
                break;

            case Overwrite.OVERWRITE_CONCURRENT:
                _manager.OverwriteConcurrent(this);
                break;

            case Overwrite.OVERWRITE_PREEXISTING:
                _manager.OverwritePreexisting(this);
                break;
            }
            _overwrite = Overwrite.OVERWRITE_NONE;
        }