From b82da95b5181ac8bbae38efb13e950d5e88a4caa Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 23 Oct 2020 13:08:43 +0800 Subject: =?UTF-8?q?*=E7=A7=BB=E5=8A=A8amplify=20shader=20editor=E5=88=B0th?= =?UTF-8?q?ird=20party=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Plugins/Editor/PreMadeShaders.cs | 47 ---------------------- 1 file changed, 47 deletions(-) delete mode 100644 Assets/AmplifyShaderEditor/Plugins/Editor/PreMadeShaders.cs (limited to 'Assets/AmplifyShaderEditor/Plugins/Editor/PreMadeShaders.cs') diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/PreMadeShaders.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/PreMadeShaders.cs deleted file mode 100644 index e6fd5c67..00000000 --- a/Assets/AmplifyShaderEditor/Plugins/Editor/PreMadeShaders.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Amplify Shader Editor - Visual Shader Editing Tool -// Copyright (c) Amplify Creations, Lda - -using UnityEngine; - -using System.Collections.Generic; -namespace AmplifyShaderEditor -{ - public class PreMadeShaders - { - public static readonly string FlatColorSequenceId = "Flat Color"; - private Dictionary m_actionLib; - public PreMadeShaders() - { - m_actionLib = new Dictionary(); - ActionSequence sequence = new ActionSequence( FlatColorSequenceId ); - sequence.AddToSequence( new CreateNodeActionData( 1, typeof( ColorNode ), new Vector2( -250, 125 ) ) ); - sequence.AddToSequence( new CreateConnectionActionData( 0, 4, 1, 0 ) ); - m_actionLib.Add( sequence.Name, sequence ); - } - - public ActionSequence GetSequence( string name ) - { - if ( m_actionLib.ContainsKey( name ) ) - { - return m_actionLib[ name ]; - } - return null; - } - - public void Destroy() - { - var items = m_actionLib.GetEnumerator(); - while ( items.MoveNext() ) - { - items.Current.Value.Destroy(); - } - m_actionLib.Clear(); - m_actionLib = null; - } - - public ActionSequence FlatColorSequence - { - get { return m_actionLib[ FlatColorSequenceId ]; } - } - } -} -- cgit v1.1-26-g67d0