From 917e9e0b320775634dc2e710f7deac74fd0822f0 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Oct 2020 23:30:02 +0800 Subject: * amplify shader editor --- .../Plugins/Editor/Actions/ActionSequence.cs | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Assets/AmplifyShaderEditor/Plugins/Editor/Actions/ActionSequence.cs (limited to 'Assets/AmplifyShaderEditor/Plugins/Editor/Actions/ActionSequence.cs') diff --git a/Assets/AmplifyShaderEditor/Plugins/Editor/Actions/ActionSequence.cs b/Assets/AmplifyShaderEditor/Plugins/Editor/Actions/ActionSequence.cs new file mode 100644 index 00000000..c60480e0 --- /dev/null +++ b/Assets/AmplifyShaderEditor/Plugins/Editor/Actions/ActionSequence.cs @@ -0,0 +1,39 @@ +// Amplify Shader Editor - Visual Shader Editing Tool +// Copyright (c) Amplify Creations, Lda + +using System.Collections.Generic; +namespace AmplifyShaderEditor +{ + public class ActionSequence + { + private string m_name; + private List m_sequence; + + public ActionSequence( string name ) + { + m_name = name; + m_sequence = new List(); + } + + public void AddToSequence( ActionData actionData ) + { + m_sequence.Add( actionData ); + } + + public void Execute() + { + for ( int i = 0; i < m_sequence.Count; i++ ) + { + m_sequence[ i ].ExecuteForward(); + } + } + + public void Destroy() + { + m_sequence.Clear(); + m_sequence = null; + } + + public string Name { get { return m_name; } } + } +} -- cgit v1.1-26-g67d0