public LerpInstance(ShaderLerpPlugin plugin, BaseMonoAnimatorEntity entity, E_ShaderData dataType, List <BaseMonoAnimatorEntity.SpecialStateMaterialData> list, MonoBuffShader_Lerp shaderData, bool dir) { this._shaderLerpPlugin = plugin; this._entity = entity; this._dataType = dataType; this._mats = list; this._shaderData = shaderData; this.isEnableTransition = dir; }
public void StartLerp(E_ShaderData dataType, List <BaseMonoAnimatorEntity.SpecialStateMaterialData> list, MonoBuffShader_Lerp shaderData, bool dir, int shaderIx) { LerpInstance item = new LerpInstance(this, this._animatorEntity, dataType, list, shaderData, dir); if (shaderIx != -1) { int num = this._newShaderEntries.SeekAddPosition <Tuple <E_ShaderData, int> >(); this._newShaderEntries[num] = Tuple.Create <E_ShaderData, int>(dataType, shaderIx); } this._lerpInstances.Add(item); item.StartLerping(); }