├── .gitignore
├── Assets
├── Gizmos
│ └── iTweenIcon.tif
├── AssetStoreTools
│ └── Editor
│ │ ├── icon.png
│ │ ├── DroidSansMono.ttf
│ │ ├── AssetStoreTools.dll
│ │ └── AssetStoreToolsExtra.dll
└── iTweenEditor
│ ├── AssetStore
│ ├── big.png
│ ├── icon.png
│ ├── medium.png
│ ├── small.png
│ ├── Screenshots
│ │ └── screenshot1.png
│ └── asset_store.json
│ ├── Gizmos
│ └── iTweenIcon.tif
│ ├── Examples
│ ├── Path Test.unity
│ ├── StartAndStopATween.unity
│ └── StartAndStopTween.cs
│ ├── iTweenPath.cs
│ ├── Helper Classes
│ ├── Vector3OrTransform.cs
│ ├── Vector3OrTransformArray.cs
│ └── EventParamMappings.cs
│ ├── README.txt
│ ├── Editor
│ ├── iTweenPathEditor.cs
│ └── iTweenEventDataEditor.cs
│ └── iTweenEvent.cs
└── ProjectSettings
├── TagManager.asset
├── AudioManager.asset
├── InputManager.asset
├── TimeManager.asset
├── DynamicsManager.asset
├── EditorSettings.asset
├── NavMeshLayers.asset
├── NetworkManager.asset
├── ProjectSettings.asset
├── QualitySettings.asset
└── EditorBuildSettings.asset
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | Temp
3 | Library
4 | *.userprefs
5 | *.csproj
6 | *.sln
7 | *.pidb
8 |
--------------------------------------------------------------------------------
/Assets/Gizmos/iTweenIcon.tif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/Gizmos/iTweenIcon.tif
--------------------------------------------------------------------------------
/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/TagManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/AudioManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/InputManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/InputManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/TimeManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/DynamicsManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/EditorSettings.asset
--------------------------------------------------------------------------------
/ProjectSettings/NavMeshLayers.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/NavMeshLayers.asset
--------------------------------------------------------------------------------
/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/NetworkManager.asset
--------------------------------------------------------------------------------
/ProjectSettings/ProjectSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/ProjectSettings.asset
--------------------------------------------------------------------------------
/ProjectSettings/QualitySettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/QualitySettings.asset
--------------------------------------------------------------------------------
/Assets/AssetStoreTools/Editor/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/AssetStoreTools/Editor/icon.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/AssetStore/big.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/AssetStore/icon.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/medium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/AssetStore/medium.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/AssetStore/small.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Gizmos/iTweenIcon.tif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/Gizmos/iTweenIcon.tif
--------------------------------------------------------------------------------
/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/ProjectSettings/EditorBuildSettings.asset
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Examples/Path Test.unity:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/Examples/Path Test.unity
--------------------------------------------------------------------------------
/Assets/AssetStoreTools/Editor/DroidSansMono.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/AssetStoreTools/Editor/DroidSansMono.ttf
--------------------------------------------------------------------------------
/Assets/AssetStoreTools/Editor/AssetStoreTools.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/AssetStoreTools/Editor/AssetStoreTools.dll
--------------------------------------------------------------------------------
/Assets/AssetStoreTools/Editor/AssetStoreToolsExtra.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/AssetStoreTools/Editor/AssetStoreToolsExtra.dll
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Examples/StartAndStopATween.unity:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/Examples/StartAndStopATween.unity
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/Screenshots/screenshot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dkoontz/iTween-Visual-Editor/HEAD/Assets/iTweenEditor/AssetStore/Screenshots/screenshot1.png
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Examples/StartAndStopTween.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using System.Collections.Generic;
3 | using System.Collections;
4 | using System.Linq;
5 |
6 | public class StartAndStopTween : MonoBehaviour {
7 |
8 | public GameObject target;
9 |
10 | void OnGUI() {
11 | if(GUILayout.Button("Start Bounce")) {
12 | iTweenEvent.GetEvent(target, "Bounce").Play();
13 | }
14 |
15 | if(GUILayout.Button("Stop Bounce")) {
16 | iTweenEvent.GetEvent(target, "Bounce").Stop();
17 | }
18 |
19 | if(GUILayout.Button("Start Color Fade")) {
20 | iTweenEvent.GetEvent(target, "Color Fade").Play();
21 | }
22 |
23 | if(GUILayout.Button("Stop Color Fade")) {
24 | iTweenEvent.GetEvent(target, "Color Fade").Stop();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/AssetStore/asset_store.json:
--------------------------------------------------------------------------------
1 | {
2 | "publisher_id": 0,
3 | "publisher_package_id": 183,
4 | "title": "iTween Visual Editor",
5 | "description": "The iTween Visual Editor is a Unity 3, editor component that allows you to set up almost any iTween tween visually vs requiring code. So you can replace this\n\niTween.MoveTo(gameObject,{\"x\":10,\"time\":4,\"looptype\":\"loop\"});\n\nwith a nice Unity inspector view.\n\nFor more information and an example project please visit the project page.",
6 | "changes": "Vector3 and Transform paths are now working again (broken by changes in 0.5.1).",
7 | "version_name": "0.5.2",
8 | "category": 3,
9 | "recommended_features": [],
10 | "required_features": []
11 | }
12 |
--------------------------------------------------------------------------------
/Assets/iTweenEditor/iTweenPath.cs:
--------------------------------------------------------------------------------
1 | //by Bob Berkebile : Pixelplacement : http://www.pixelplacement.com
2 |
3 | using UnityEngine;
4 | using System.Collections.Generic;
5 |
6 | public class iTweenPath : MonoBehaviour
7 | {
8 | public string pathName ="";
9 | public Color pathColor = Color.cyan;
10 | public List nodes = new List(){Vector3.zero, Vector3.zero};
11 | public int nodeCount;
12 | public static Dictionary paths = new Dictionary();
13 | public bool initialized = false;
14 | public string initialName = "";
15 |
16 | void OnEnable(){
17 | paths.Add(pathName.ToLower(), this);
18 | }
19 |
20 | void OnDrawGizmosSelected(){
21 | if(enabled) { // dkoontz
22 | if(nodes.Count > 0){
23 | iTween.DrawPath(nodes.ToArray(), pathColor);
24 | }
25 | } // dkoontz
26 | }
27 |
28 | public static Vector3[] GetPath(string requestedName){
29 | requestedName = requestedName.ToLower();
30 | if(paths.ContainsKey(requestedName)){
31 | return paths[requestedName].nodes.ToArray();
32 | }else{
33 | Debug.Log("No path with that name exists! Are you sure you wrote it correctly?");
34 | return null;
35 | }
36 | }
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Helper Classes/Vector3OrTransform.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009 David Koontz
2 | // Please direct any bugs/comments/suggestions to david@koontzfamily.org
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | // copies of the Software, and to permit persons to whom the Software is
9 | // furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in
12 | // all copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | // THE SOFTWARE.
21 |
22 | using UnityEngine;
23 |
24 | public class Vector3OrTransform {
25 | public static readonly string[] choices = {"Vector3", "Transform"};
26 | public static readonly int vector3Selected = 0;
27 | public static readonly int transformSelected = 1;
28 | public int selected = 0;
29 | public Vector3 vector;
30 | public Transform transform;
31 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Helper Classes/Vector3OrTransformArray.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009 David Koontz
2 | // Please direct any bugs/comments/suggestions to david@koontzfamily.org
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | // copies of the Software, and to permit persons to whom the Software is
9 | // furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in
12 | // all copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | // THE SOFTWARE.
21 |
22 | using UnityEngine;
23 |
24 | public class Vector3OrTransformArray {
25 | public static readonly string[] choices = {"Vector3", "Transform", "Path"};
26 | public static readonly int vector3Selected = 0;
27 | public static readonly int transformSelected = 1;
28 | public static readonly int iTweenPathSelected = 2;
29 |
30 | public int selected = 0;
31 | public Vector3[] vectorArray;
32 | public Transform[] transformArray;
33 | public string pathName;
34 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/README.txt:
--------------------------------------------------------------------------------
1 | iTween Visual Editor version 0.6.0
2 |
3 | After installation, if you have a Javascript based project it is highly recommended that you run the "Component/iTween/Prepare Visual Editor for Javascript Usage" command. This will copy files into your Plugins directory which is necessary for the visual editor events to be called from Javascript. C# based projects require no further configuration.
4 |
5 | Release History ===============
6 |
7 | 0.6.0 ====
8 |
9 | Fixed warnings resulting from API changes in Unity 3.4. Fixed error where bool fields could pass the wrong value. Updated bundled iTween version to 2.0.45.1. Made initial delay field always show, even when 'Play Automatically' was not selected.
10 |
11 | 0.5.2 ====
12 |
13 | Fixed a problem with Vector3 or Transform paths introduced when implemented path support.
14 |
15 | 0.5.1 ====
16 |
17 | Added iTween menu item to move files into the correct position for Javascript based projects.
18 | Fixed bug with delay of 0 seconds still pausing slightly before beginning tween.
19 | Changed visual path editor selection list to use global listing instead of just paths attached to the same GameObject.
20 |
21 | 0.5 ======
22 |
23 | Added integration for the iTween Path Editor.
24 | This work was based on code contributed by Gabriel Gheorghiu (gabison@gmail.com).
25 |
26 | 0.4 ======
27 |
28 | Minor bug fix release. iTweenEvents now show an icon in the scene view.
29 |
30 | 0.3 ======
31 |
32 | Major bug fixed where iTweenEvent settings would be reset.
33 | Name field was added to the iTweenEvent so you can distinguish them.
34 | Added static method on the iTweenEvent class named GetEvent.
35 |
36 | 0.2 ======
37 |
38 | Added support for the path parameter of MoveTo and MoveFrom.
39 | Callbacks changed to take a single string parameter.
40 |
41 | 0.1 ======
42 |
43 | Initial release.
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Editor/iTweenPathEditor.cs:
--------------------------------------------------------------------------------
1 | //by Bob Berkebile : Pixelplacement : http://www.pixelplacement.com
2 |
3 | using UnityEngine;
4 | using UnityEditor;
5 | using System.Collections;
6 |
7 | [CustomEditor(typeof(iTweenPath))]
8 | public class iTweenPathEditor : Editor
9 | {
10 | iTweenPath _target;
11 | GUIStyle style = new GUIStyle();
12 | public static int count = 0;
13 |
14 | void OnEnable(){
15 | //i like bold handle labels since I'm getting old:
16 | style.fontStyle = FontStyle.Bold;
17 | style.normal.textColor = Color.white;
18 | _target = (iTweenPath)target;
19 |
20 | //lock in a default path name:
21 | if(!_target.initialized){
22 | _target.initialized = true;
23 | _target.pathName = "New Path " + ++count;
24 | _target.initialName = _target.pathName;
25 | }
26 | }
27 |
28 | public override void OnInspectorGUI(){
29 | //path name:
30 | EditorGUILayout.BeginHorizontal();
31 | EditorGUILayout.PrefixLabel("Path Name");
32 | _target.pathName = EditorGUILayout.TextField(_target.pathName);
33 | EditorGUILayout.EndHorizontal();
34 |
35 | if(_target.pathName == ""){
36 | _target.pathName = _target.initialName;
37 | }
38 |
39 | //path color:
40 | EditorGUILayout.BeginHorizontal();
41 | EditorGUILayout.PrefixLabel("Path Color");
42 | _target.pathColor = EditorGUILayout.ColorField(_target.pathColor);
43 | EditorGUILayout.EndHorizontal();
44 |
45 | //exploration segment count control:
46 | EditorGUILayout.BeginHorizontal();
47 | EditorGUILayout.PrefixLabel("Node Count");
48 | _target.nodeCount = Mathf.Clamp(EditorGUILayout.IntSlider(_target.nodeCount, 0, 10), 2,100);
49 | EditorGUILayout.EndHorizontal();
50 |
51 | //add node?
52 | if(_target.nodeCount > _target.nodes.Count){
53 | for (int i = 0; i < _target.nodeCount - _target.nodes.Count; i++) {
54 | _target.nodes.Add(Vector3.zero);
55 | }
56 | }
57 |
58 | //remove node?
59 | if(_target.nodeCount < _target.nodes.Count){
60 | if(EditorUtility.DisplayDialog("Remove path node?","Shortening the node list will permantently destory parts of your path. This operation cannot be undone.", "OK", "Cancel")){
61 | int removeCount = _target.nodes.Count - _target.nodeCount;
62 | _target.nodes.RemoveRange(_target.nodes.Count-removeCount,removeCount);
63 | }else{
64 | _target.nodeCount = _target.nodes.Count;
65 | }
66 | }
67 |
68 | //node display:
69 | EditorGUI.indentLevel = 4;
70 | for (int i = 0; i < _target.nodes.Count; i++) {
71 | _target.nodes[i] = EditorGUILayout.Vector3Field("Node " + (i+1), _target.nodes[i]);
72 | }
73 |
74 | //update and redraw:
75 | if(GUI.changed){
76 | EditorUtility.SetDirty(_target);
77 | }
78 | }
79 |
80 | void OnSceneGUI(){
81 | if(_target.enabled) { // dkoontz
82 | if(_target.nodes.Count > 0){
83 | //allow path adjustment undo:
84 | Undo.SetSnapshotTarget(_target,"Adjust iTween Path");
85 |
86 | //path begin and end labels:
87 | Handles.Label(_target.nodes[0], "'" + _target.pathName + "' Begin", style);
88 | Handles.Label(_target.nodes[_target.nodes.Count-1], "'" + _target.pathName + "' End", style);
89 |
90 | //node handle display:
91 | for (int i = 0; i < _target.nodes.Count; i++) {
92 | _target.nodes[i] = Handles.PositionHandle(_target.nodes[i], Quaternion.identity);
93 | }
94 | }
95 | } // dkoontz
96 | }
97 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Editor/iTweenEventDataEditor.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009-2012 David Koontz
2 | // Please direct any bugs/comments/suggestions to david@koontzfamily.org
3 | //
4 | // Thanks to Gabriel Gheorghiu (gabison@gmail.com) for his code submission
5 | // that lead to the integration with the iTween visual path editor.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files (the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions:
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | using UnityEditor;
26 | using UnityEngine;
27 | using System.Collections;
28 | using System.Collections.Generic;
29 | using System.IO;
30 | using System.Runtime.Serialization.Formatters.Binary;
31 | using System.Text;
32 | using System.Linq;
33 |
34 | [CustomEditor(typeof(iTweenEvent))]
35 | public class iTweenEventDataEditor : Editor {
36 | List trueFalseOptions = new List() {"True", "False"};
37 | Dictionary values;
38 | Dictionary propertiesEnabled = new Dictionary();
39 | iTweenEvent.TweenType previousType;
40 |
41 | [MenuItem("Component/iTween/iTweenEvent")]
42 | static void AddiTweenEvent () {
43 | if(Selection.activeGameObject != null) {
44 | Selection.activeGameObject.AddComponent(typeof(iTweenEvent));
45 | }
46 | }
47 |
48 | [MenuItem("Component/iTween/Prepare Visual Editor for Javascript Usage")]
49 | static void CopyFilesForJavascriptUsage() {
50 | if(Directory.Exists(Application.dataPath + "/iTweenEditor/Helper Classes")) {
51 | if(!Directory.Exists(Application.dataPath + "/Plugins")) {
52 | Directory.CreateDirectory(Application.dataPath + "/Plugins");
53 | }
54 |
55 | if(!Directory.Exists(Application.dataPath + "/Plugins/iTweenEditor")) {
56 | Directory.CreateDirectory(Application.dataPath + "/Plugins/iTweenEditor");
57 | }
58 | FileUtil.MoveFileOrDirectory(Application.dataPath + "/iTweenEditor/Helper Classes", Application.dataPath + "/Plugins/iTweenEditor/Helper Classes");
59 | FileUtil.MoveFileOrDirectory(Application.dataPath + "/iTweenEditor/iTweenEvent.cs", Application.dataPath + "/Plugins/iTweenEvent.cs");
60 | FileUtil.MoveFileOrDirectory(Application.dataPath + "/iTweenEditor/iTween.cs", Application.dataPath + "/Plugins/iTween.cs");
61 | FileUtil.MoveFileOrDirectory(Application.dataPath + "/iTweenEditor/iTweenPath.cs", Application.dataPath + "/Plugins/iTweenPath.cs");
62 |
63 | AssetDatabase.Refresh();
64 | }
65 | else {
66 | EditorUtility.DisplayDialog("Can't move files", "Your files have already been moved", "Ok");
67 | }
68 | }
69 |
70 | [MenuItem("Component/iTween/Donate to support the Visual Editor")]
71 | static void Donate() {
72 | Application.OpenURL("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WD3GQ6HHD257C");
73 | }
74 |
75 | public void OnEnable() {
76 | var evt = (iTweenEvent)target;
77 | foreach(var key in EventParamMappings.mappings[evt.type].Keys) {
78 | propertiesEnabled[key] = false;
79 | }
80 | previousType = evt.type;
81 |
82 | if(!Directory.Exists(Application.dataPath + "/Gizmos")) {
83 | Directory.CreateDirectory(Application.dataPath + "/Gizmos");
84 | }
85 |
86 | if(!File.Exists(Application.dataPath + "/Gizmos/iTweenIcon.tif")) {
87 | FileUtil.CopyFileOrDirectory(Application.dataPath + "/iTweenEditor/Gizmos/iTweenIcon.tif", Application.dataPath + "/Gizmos/iTweenIcon.tif");
88 | }
89 | }
90 |
91 | public override void OnInspectorGUI() {
92 | var evt = (iTweenEvent)target;
93 | values = evt.Values;
94 | var keys = values.Keys.ToArray();
95 |
96 | foreach(var key in keys) {
97 | propertiesEnabled[key] = true;
98 | if(typeof(Vector3OrTransform) == EventParamMappings.mappings[evt.type][key]) {
99 | var val = new Vector3OrTransform();
100 |
101 | if(null == values[key] || typeof(Transform) == values[key].GetType()) {
102 | if(null == values[key]) {
103 | val.transform = null;
104 | }
105 | else {
106 | val.transform = (Transform)values[key];
107 | }
108 | val.selected = Vector3OrTransform.transformSelected;
109 | }
110 | else if(typeof(Vector3) == values[key].GetType()) {
111 | val.vector = (Vector3)values[key];
112 | val.selected = Vector3OrTransform.vector3Selected;
113 | }
114 |
115 | values[key] = val;
116 | }
117 | if(typeof(Vector3OrTransformArray) == EventParamMappings.mappings[evt.type][key]) {
118 | var val = new Vector3OrTransformArray();
119 |
120 | if(null == values[key] || typeof(Transform[]) == values[key].GetType()) {
121 | if(null == values[key]) {
122 | val.transformArray = null;
123 | }
124 | else {
125 | val.transformArray = (Transform[])values[key];
126 | }
127 | val.selected = Vector3OrTransformArray.transformSelected;
128 | }
129 | else if(typeof(Vector3[]) == values[key].GetType()) {
130 | val.vectorArray = (Vector3[])values[key];
131 | val.selected = Vector3OrTransformArray.vector3Selected;
132 | }
133 | else if(typeof(string) == values[key].GetType()) {
134 | val.pathName = (string)values[key];
135 | val.selected = Vector3OrTransformArray.iTweenPathSelected;
136 | }
137 |
138 | values[key] = val;
139 | }
140 | }
141 |
142 | GUILayout.Label(string.Format("iTween Event Editor v{0}", iTweenEvent.VERSION));
143 | EditorGUILayout.Separator();
144 |
145 | GUILayout.BeginHorizontal();
146 | GUILayout.Label("Name");
147 | evt.tweenName = EditorGUILayout.TextField(evt.tweenName);
148 | GUILayout.EndHorizontal();
149 |
150 | GUILayout.BeginHorizontal();
151 | evt.showIconInInspector = GUILayout.Toggle(evt.showIconInInspector, " Show Icon In Scene");
152 | GUILayout.EndHorizontal();
153 |
154 | GUILayout.BeginHorizontal();
155 | evt.playAutomatically = GUILayout.Toggle(evt.playAutomatically, " Play Automatically");
156 | GUILayout.EndHorizontal();
157 |
158 | GUILayout.BeginHorizontal();
159 | GUILayout.Label("Initial Start Delay (delay begins once the iTweenEvent is played)");
160 | evt.delay = EditorGUILayout.FloatField(evt.delay);
161 | GUILayout.EndHorizontal();
162 |
163 | EditorGUILayout.Separator();
164 |
165 | GUILayout.BeginHorizontal();
166 | GUILayout.Label("Event Type");
167 | evt.type = (iTweenEvent.TweenType)EditorGUILayout.EnumPopup(evt.type);
168 | GUILayout.EndHorizontal();
169 |
170 | if(evt.type != previousType) {
171 | foreach(var key in EventParamMappings.mappings[evt.type].Keys) {
172 | propertiesEnabled[key] = false;
173 | }
174 | evt.Values = new Dictionary();
175 | previousType = evt.type;
176 | return;
177 | }
178 |
179 | var properties = EventParamMappings.mappings[evt.type];
180 | foreach(var pair in properties) {
181 | var key = pair.Key;
182 |
183 | GUILayout.BeginHorizontal();
184 |
185 | if(EditorGUILayout.BeginToggleGroup(key, propertiesEnabled[key])) {
186 | propertiesEnabled[key] = true;
187 |
188 | GUILayout.BeginVertical();
189 |
190 | if(typeof(string) == pair.Value) {
191 | values[key] = EditorGUILayout.TextField(values.ContainsKey(key) ? (string)values[key] : "");
192 | }
193 | else if(typeof(float) == pair.Value) {
194 | values[key] = EditorGUILayout.FloatField(values.ContainsKey(key) ? (float)values[key] : 0);
195 | }
196 | else if(typeof(int) == pair.Value) {
197 | values[key] = EditorGUILayout.IntField(values.ContainsKey(key) ? (int)values[key] : 0);
198 | }
199 | else if(typeof(bool) == pair.Value) {
200 | GUILayout.BeginHorizontal();
201 | var currentValueString = (values.ContainsKey(key) ? (bool)values[key] : false).ToString();
202 | currentValueString = currentValueString.Substring(0, 1).ToUpper() + currentValueString.Substring(1);
203 | var index = EditorGUILayout.Popup(trueFalseOptions.IndexOf(currentValueString), trueFalseOptions.ToArray());
204 | GUILayout.EndHorizontal();
205 | values[key] = bool.Parse(trueFalseOptions[index]);
206 | }
207 | else if(typeof(GameObject) == pair.Value) {
208 | values[key] = EditorGUILayout.ObjectField(values.ContainsKey(key) ? (GameObject)values[key] : null, typeof(GameObject), true);
209 | }
210 | else if(typeof(Vector3) == pair.Value) {
211 | values[key] = EditorGUILayout.Vector3Field("", values.ContainsKey(key) ? (Vector3)values[key] : Vector3.zero);
212 | }
213 | else if(typeof(Vector3OrTransform) == pair.Value) {
214 | if(!values.ContainsKey(key)) {
215 | values[key] = new Vector3OrTransform();
216 | }
217 | var val = (Vector3OrTransform)values[key];
218 |
219 | val.selected = GUILayout.SelectionGrid(val.selected, Vector3OrTransform.choices, 2);
220 |
221 | if(Vector3OrTransform.vector3Selected == val.selected) {
222 | val.vector = EditorGUILayout.Vector3Field("", val.vector);
223 | }
224 | else {
225 | val.transform = (Transform)EditorGUILayout.ObjectField(val.transform, typeof(Transform), true);
226 | }
227 | values[key] = val;
228 | }
229 | else if(typeof(Vector3OrTransformArray) == pair.Value) {
230 | if(!values.ContainsKey(key)) {
231 | values[key] = new Vector3OrTransformArray();
232 | }
233 | var val = (Vector3OrTransformArray)values[key];
234 | val.selected = GUILayout.SelectionGrid(val.selected, Vector3OrTransformArray.choices, Vector3OrTransformArray.choices.Length);
235 |
236 | if(Vector3OrTransformArray.vector3Selected == val.selected) {
237 | if(null == val.vectorArray) {
238 | val.vectorArray = new Vector3[0];
239 | }
240 | var elements = val.vectorArray.Length;
241 | GUILayout.BeginHorizontal();
242 | GUILayout.Label("Number of points");
243 | elements = EditorGUILayout.IntField(elements);
244 | GUILayout.EndHorizontal();
245 | if(elements != val.vectorArray.Length) {
246 | var resizedArray = new Vector3[elements];
247 | val.vectorArray.CopyTo(resizedArray, 0);
248 | val.vectorArray = resizedArray;
249 | }
250 | for(var i = 0; i < val.vectorArray.Length; ++i) {
251 | val.vectorArray[i] = EditorGUILayout.Vector3Field("", val.vectorArray[i]);
252 | }
253 | }
254 | else if(Vector3OrTransformArray.transformSelected == val.selected) {
255 | if(null == val.transformArray) {
256 | val.transformArray = new Transform[0];
257 | }
258 | var elements = val.transformArray.Length;
259 | GUILayout.BeginHorizontal();
260 | GUILayout.Label("Number of points");
261 | elements = EditorGUILayout.IntField(elements);
262 | GUILayout.EndHorizontal();
263 | if(elements != val.transformArray.Length) {
264 | var resizedArray = new Transform[elements];
265 | val.transformArray.CopyTo(resizedArray, 0);
266 | val.transformArray = resizedArray;
267 | }
268 | for(var i = 0; i < val.transformArray.Length; ++i) {
269 | val.transformArray[i] = (Transform)EditorGUILayout.ObjectField(val.transformArray[i], typeof(Transform), true);
270 | }
271 | }
272 | else if(Vector3OrTransformArray.iTweenPathSelected == val.selected) {
273 | var index = 0;
274 | var paths = (GameObject.FindObjectsOfType(typeof(iTweenPath)) as iTweenPath[]);
275 | if(0 == paths.Length) {
276 | val.pathName = "";
277 | GUILayout.Label("No paths are defined");
278 | }
279 | else {
280 | for(var i = 0; i < paths.Length; ++i) {
281 | if(paths[i].pathName == val.pathName) {
282 | index = i;
283 | }
284 | }
285 | index = EditorGUILayout.Popup(index, (GameObject.FindObjectsOfType(typeof(iTweenPath)) as iTweenPath[]).Select(path => path.pathName).ToArray());
286 |
287 | val.pathName = paths[index].pathName;
288 | }
289 | }
290 | values[key] = val;
291 | }
292 | else if(typeof(iTween.LoopType) == pair.Value) {
293 | values[key] = EditorGUILayout.EnumPopup(values.ContainsKey(key) ? (iTween.LoopType)values[key] : iTween.LoopType.none);
294 | }
295 | else if(typeof(iTween.EaseType) == pair.Value) {
296 | values[key] = EditorGUILayout.EnumPopup(values.ContainsKey(key) ? (iTween.EaseType)values[key] : iTween.EaseType.linear);
297 | }
298 | else if(typeof(AudioSource) == pair.Value) {
299 | values[key] = (AudioSource)EditorGUILayout.ObjectField(values.ContainsKey(key) ? (AudioSource)values[key] : null, typeof(AudioSource), true);
300 | }
301 | else if(typeof(AudioClip) == pair.Value) {
302 | values[key] = (AudioClip)EditorGUILayout.ObjectField(values.ContainsKey(key) ? (AudioClip)values[key] : null, typeof(AudioClip), true);
303 | }
304 | else if(typeof(Color) == pair.Value) {
305 | values[key] = EditorGUILayout.ColorField(values.ContainsKey(key) ? (Color)values[key] : Color.white);
306 | }
307 | else if(typeof(Space) == pair.Value) {
308 | values[key] = EditorGUILayout.EnumPopup(values.ContainsKey(key) ? (Space)values[key] : Space.Self);
309 | }
310 |
311 | GUILayout.EndVertical();
312 | }
313 | else {
314 | propertiesEnabled[key] = false;
315 | values.Remove(key);
316 | }
317 |
318 | EditorGUILayout.EndToggleGroup();
319 | GUILayout.EndHorizontal();
320 | EditorGUILayout.Separator();
321 | }
322 |
323 | keys = values.Keys.ToArray();
324 |
325 | foreach(var key in keys) {
326 | if(values[key] != null && values[key].GetType() == typeof(Vector3OrTransform)) {
327 | var val = (Vector3OrTransform)values[key];
328 | if(Vector3OrTransform.vector3Selected == val.selected) {
329 | values[key] = val.vector;
330 | }
331 | else {
332 | values[key] = val.transform;
333 | }
334 | }
335 | else if(values[key] != null && values[key].GetType() == typeof(Vector3OrTransformArray)) {
336 | var val = (Vector3OrTransformArray)values[key];
337 | if(Vector3OrTransformArray.vector3Selected == val.selected) {
338 | values[key] = val.vectorArray;
339 | }
340 | else if(Vector3OrTransformArray.transformSelected == val.selected) {
341 | values[key] = val.transformArray;
342 | }
343 | else if(Vector3OrTransformArray.iTweenPathSelected == val.selected) {
344 | values[key] = val.pathName;
345 | }
346 | }
347 | }
348 |
349 | evt.Values = values;
350 | previousType = evt.type;
351 | }
352 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/iTweenEvent.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009-2012 David Koontz
2 | // Please direct any bugs/comments/suggestions to david@koontzfamily.org
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | // copies of the Software, and to permit persons to whom the Software is
9 | // furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in
12 | // all copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | // THE SOFTWARE.
21 |
22 | using UnityEngine;
23 | using System.Collections;
24 | using System.Collections.Generic;
25 | using System.Linq;
26 |
27 | [System.Serializable]
28 | public class ArrayIndexes {
29 | public int[] indexes;
30 | }
31 |
32 | public class iTweenEvent : MonoBehaviour{
33 | public const string VERSION = "0.6.1";
34 |
35 | public enum TweenType {
36 | AudioFrom,
37 | AudioTo,
38 | AudioUpdate,
39 | CameraFadeFrom,
40 | CameraFadeTo,
41 | ColorFrom,
42 | ColorTo,
43 | ColorUpdate,
44 | FadeFrom,
45 | FadeTo,
46 | FadeUpdate,
47 | LookFrom,
48 | LookTo,
49 | LookUpdate,
50 | MoveAdd,
51 | MoveBy,
52 | MoveFrom,
53 | MoveTo,
54 | MoveUpdate,
55 | PunchPosition,
56 | PunchRotation,
57 | PunchScale,
58 | RotateAdd,
59 | RotateBy,
60 | RotateFrom,
61 | RotateTo,
62 | RotateUpdate,
63 | ScaleAdd,
64 | ScaleBy,
65 | ScaleFrom,
66 | ScaleTo,
67 | ScaleUpdate,
68 | ShakePosition,
69 | ShakeRotation,
70 | ShakeScale,
71 | Stab
72 | //ValueTo
73 | }
74 |
75 | public string tweenName = "";
76 | public bool playAutomatically = true;
77 | public float delay = 0;
78 | public iTweenEvent.TweenType type = iTweenEvent.TweenType.MoveTo;
79 | public bool showIconInInspector = true;
80 |
81 | ///
82 | /// Finds an iTweenEvent on a GameObject
83 | ///
84 | ///
85 | /// The to look under
86 | ///
87 | ///
88 | /// The name of the to look for
89 | ///
90 | ///
91 | /// A
92 | ///
93 | public static iTweenEvent GetEvent(GameObject obj, string name) {
94 | var tweens = obj.GetComponents();
95 | if(tweens.Length > 0) {
96 | var result = tweens.FirstOrDefault(tween => { return tween.tweenName == name; });
97 | if(result != null) {
98 | return result;
99 | }
100 | }
101 |
102 | throw new System.ArgumentException("No tween with the name '" + name + "' could be found on the GameObject named '" + obj.name + "'");
103 | }
104 |
105 | public Dictionary Values {
106 | get {
107 | if(null == values) {
108 | DeserializeValues();
109 | }
110 | return values;
111 | }
112 | set {
113 | values = value;
114 | SerializeValues();
115 | }
116 | }
117 |
118 | [SerializeField]
119 | string[] keys;
120 |
121 | [SerializeField]
122 | int[] indexes;
123 |
124 | [SerializeField]
125 | string[] metadatas;
126 |
127 | [SerializeField]
128 | int[] ints;
129 |
130 | [SerializeField]
131 | float[] floats;
132 |
133 | [SerializeField]
134 | bool[] bools;
135 |
136 | [SerializeField]
137 | string[] strings;
138 |
139 | [SerializeField]
140 | Vector3[] vector3s;
141 |
142 | [SerializeField]
143 | Color[] colors;
144 |
145 | [SerializeField]
146 | Space[] spaces;
147 |
148 | [SerializeField]
149 | iTween.EaseType[] easeTypes;
150 |
151 | [SerializeField]
152 | iTween.LoopType[] loopTypes;
153 |
154 | [SerializeField]
155 | GameObject[] gameObjects;
156 |
157 | [SerializeField]
158 | Transform[] transforms;
159 |
160 | [SerializeField]
161 | AudioClip[] audioClips;
162 |
163 | [SerializeField]
164 | AudioSource[] audioSources;
165 |
166 | [SerializeField]
167 | ArrayIndexes[] vector3Arrays;
168 |
169 | [SerializeField]
170 | ArrayIndexes[] transformArrays;
171 |
172 | [SerializeField]
173 | iTweenPath[] paths;
174 |
175 | Dictionary values;
176 | bool stopped;
177 | iTween instantiatedTween;
178 | string internalName;
179 |
180 | public void Start() {
181 | if(playAutomatically) Play();
182 | }
183 |
184 | public void Play() {
185 | if(!string.IsNullOrEmpty(internalName)) Stop();
186 |
187 | stopped = false;
188 | StartCoroutine(StartEvent());
189 | }
190 |
191 | ///
192 | /// Stops the currently running tween that was started with . A tween
193 | /// stopped in this manner will not go to the "end" of the tween.
194 | ///
195 | public void Stop() {
196 | iTween.StopByName(gameObject, internalName);
197 | internalName = "";
198 | stopped = true;
199 | }
200 |
201 | public void OnDrawGizmos() {
202 | if(showIconInInspector) Gizmos.DrawIcon(transform.position, "iTweenIcon.tif");
203 | }
204 |
205 | IEnumerator StartEvent() {
206 | if(delay > 0) yield return new WaitForSeconds(delay);
207 |
208 | if(stopped) yield return null;
209 |
210 | var optionsHash = new Hashtable();
211 | foreach(var pair in Values) {
212 | if("path" == pair.Key && pair.Value.GetType() == typeof(string)) optionsHash.Add(pair.Key, iTweenPath.GetPath((string)pair.Value));
213 | else optionsHash.Add(pair.Key, pair.Value);
214 | }
215 |
216 | // We use the internalName to have a unique identifier to stop the tween
217 | internalName = string.IsNullOrEmpty(tweenName) ? string.Empty : tweenName;
218 | internalName = string.Format("{0}-{1}", internalName, System.Guid.NewGuid().ToString());
219 | optionsHash.Add("name", internalName);
220 |
221 | switch(type) {
222 | case TweenType.AudioFrom:
223 | iTween.AudioFrom(gameObject, optionsHash);
224 | break;
225 | case TweenType.AudioTo:
226 | iTween.AudioTo(gameObject, optionsHash);
227 | break;
228 | case TweenType.AudioUpdate:
229 | iTween.AudioUpdate(gameObject, optionsHash);
230 | break;
231 | case TweenType.CameraFadeFrom:
232 | iTween.CameraFadeFrom(optionsHash);
233 | break;
234 | case TweenType.CameraFadeTo:
235 | iTween.CameraFadeTo(optionsHash);
236 | break;
237 | case TweenType.ColorFrom:
238 | iTween.ColorFrom(gameObject, optionsHash);
239 | break;
240 | case TweenType.ColorTo:
241 | iTween.ColorTo(gameObject, optionsHash);
242 | break;
243 | case TweenType.ColorUpdate:
244 | iTween.ColorUpdate(gameObject, optionsHash);
245 | break;
246 | case TweenType.FadeFrom:
247 | iTween.FadeFrom(gameObject, optionsHash);
248 | break;
249 | case TweenType.FadeTo:
250 | iTween.FadeTo(gameObject, optionsHash);
251 | break;
252 | case TweenType.FadeUpdate:
253 | iTween.FadeUpdate(gameObject, optionsHash);
254 | break;
255 | case TweenType.LookFrom:
256 | iTween.LookFrom(gameObject, optionsHash);
257 | break;
258 | case TweenType.LookTo:
259 | iTween.LookTo(gameObject, optionsHash);
260 | break;
261 | case TweenType.LookUpdate:
262 | iTween.LookUpdate(gameObject, optionsHash);
263 | break;
264 | case TweenType.MoveAdd:
265 | iTween.MoveAdd(gameObject, optionsHash);
266 | break;
267 | case TweenType.MoveBy:
268 | iTween.MoveBy(gameObject, optionsHash);
269 | break;
270 | case TweenType.MoveFrom:
271 | iTween.MoveFrom(gameObject, optionsHash);
272 | break;
273 | case TweenType.MoveTo:
274 | iTween.MoveTo(gameObject, optionsHash);
275 | break;
276 | case TweenType.MoveUpdate:
277 | iTween.MoveUpdate(gameObject, optionsHash);
278 | break;
279 | case TweenType.PunchPosition:
280 | iTween.PunchPosition(gameObject, optionsHash);
281 | break;
282 | case TweenType.PunchRotation:
283 | iTween.PunchRotation(gameObject, optionsHash);
284 | break;
285 | case TweenType.PunchScale:
286 | iTween.PunchScale(gameObject, optionsHash);
287 | break;
288 | case TweenType.RotateAdd:
289 | iTween.RotateAdd(gameObject, optionsHash);
290 | break;
291 | case TweenType.RotateBy:
292 | iTween.RotateBy(gameObject, optionsHash);
293 | break;
294 | case TweenType.RotateFrom:
295 | iTween.RotateFrom(gameObject, optionsHash);
296 | break;
297 | case TweenType.RotateTo:
298 | iTween.RotateTo(gameObject, optionsHash);
299 | break;
300 | case TweenType.RotateUpdate:
301 | iTween.RotateUpdate(gameObject, optionsHash);
302 | break;
303 | case TweenType.ScaleAdd:
304 | iTween.ScaleAdd(gameObject, optionsHash);
305 | break;
306 | case TweenType.ScaleBy:
307 | iTween.ScaleBy(gameObject, optionsHash);
308 | break;
309 | case TweenType.ScaleFrom:
310 | iTween.ScaleFrom(gameObject, optionsHash);
311 | break;
312 | case TweenType.ScaleTo:
313 | iTween.ScaleTo(gameObject, optionsHash);
314 | break;
315 | case TweenType.ScaleUpdate:
316 | iTween.ScaleUpdate(gameObject, optionsHash);
317 | break;
318 | case TweenType.ShakePosition:
319 | iTween.ShakePosition(gameObject, optionsHash);
320 | break;
321 | case TweenType.ShakeRotation:
322 | iTween.ShakeRotation(gameObject, optionsHash);
323 | break;
324 | case TweenType.ShakeScale:
325 | iTween.ShakeScale(gameObject, optionsHash);
326 | break;
327 | case TweenType.Stab:
328 | iTween.Stab(gameObject, optionsHash);
329 | break;
330 | default:
331 | throw new System.ArgumentException("Invalid tween type: " + type);
332 | }
333 | }
334 |
335 | void SerializeValues() {
336 | var keyList = new List();
337 | var indexList = new List();
338 | var metadataList = new List();
339 |
340 | var intList = new List();
341 | var floatList = new List();
342 | var boolList = new List();
343 | var stringList = new List();
344 | var vector3List = new List();
345 | var colorList = new List();
346 | var spaceList = new List();
347 | var easeTypeList = new List();
348 | var loopTypeList = new List();
349 | var gameObjectList = new List();
350 | var transformList = new List();
351 | var audioClipList = new List();
352 | var audioSourceList = new List();
353 | var vector3ArrayList = new List();
354 | var transformArrayList = new List();
355 |
356 | foreach(var pair in values) {
357 | var mappings = EventParamMappings.mappings[type];
358 | var valueType = mappings[pair.Key];
359 | if(typeof(int) == valueType) {
360 | AddToList(keyList, indexList, intList, metadataList, pair);
361 | }
362 | if(typeof(float) == valueType) {
363 | AddToList(keyList, indexList, floatList, metadataList, pair);
364 | }
365 | else if(typeof(bool) == valueType) {
366 | AddToList(keyList, indexList, boolList, metadataList, pair);
367 | }
368 | else if(typeof(string) == valueType) {
369 | AddToList(keyList, indexList, stringList, metadataList, pair);
370 | }
371 | else if(typeof(Vector3) == valueType) {
372 | AddToList(keyList, indexList, vector3List, metadataList, pair);
373 | }
374 | else if(typeof(Color) == valueType) {
375 | AddToList(keyList, indexList, colorList, metadataList, pair);
376 | }
377 | else if(typeof(Space) == valueType) {
378 | AddToList(keyList, indexList, spaceList, metadataList, pair);
379 | }
380 | else if(typeof(iTween.EaseType) == valueType) {
381 | AddToList(keyList, indexList, easeTypeList, metadataList, pair);
382 | }
383 | else if(typeof(iTween.LoopType) == valueType) {
384 | AddToList(keyList, indexList, loopTypeList, metadataList, pair);
385 | }
386 | else if(typeof(GameObject) == valueType) {
387 | AddToList(keyList, indexList, gameObjectList, metadataList, pair);
388 | }
389 | else if(typeof(Transform) == valueType) {
390 | AddToList(keyList, indexList, transformList, metadataList, pair);
391 | }
392 | else if(typeof(AudioClip) == valueType) {
393 | AddToList(keyList, indexList, audioClipList, metadataList, pair);
394 | }
395 | else if(typeof(AudioSource) == valueType) {
396 | AddToList(keyList, indexList, audioSourceList, metadataList, pair);
397 | }
398 | else if(typeof(Vector3OrTransform) == valueType) {
399 | if(pair.Value == null || typeof(Transform) == pair.Value.GetType()) {
400 | AddToList(keyList, indexList, transformList, metadataList, pair.Key, pair.Value, "t");
401 | }
402 | else {
403 | AddToList(keyList, indexList, vector3List, metadataList, pair.Key, pair.Value, "v");
404 | }
405 | }
406 | else if(typeof(Vector3OrTransformArray) == valueType) {
407 | if(typeof(Vector3[]) == pair.Value.GetType()) {
408 | var value = (Vector3[])pair.Value;
409 | var vectorIndexes = new ArrayIndexes();
410 | var indexArray = new int[value.Length];
411 | for(var i = 0; i < value.Length; ++i) {
412 | vector3List.Add((Vector3)value[i]);
413 | indexArray[i] = vector3List.Count - 1;
414 | }
415 |
416 | vectorIndexes.indexes = indexArray;
417 | AddToList(keyList, indexList, vector3ArrayList, metadataList, pair.Key, vectorIndexes, "v");
418 | }
419 | else if(typeof(Transform[]) == pair.Value.GetType()) {
420 | var value = (Transform[])pair.Value;
421 | var transformIndexes = new ArrayIndexes();
422 | var indexArray = new int[value.Length];
423 | for(var i = 0; i < value.Length; ++i) {
424 | transformList.Add((Transform)value[i]);
425 | indexArray[i] = transformList.Count - 1;
426 | }
427 |
428 | transformIndexes.indexes = indexArray;
429 | AddToList(keyList, indexList, transformArrayList, metadataList, pair.Key, transformIndexes, "t");
430 | }
431 | else if(typeof(string) == pair.Value.GetType())
432 | {
433 | AddToList(keyList, indexList, stringList, metadataList, pair.Key, pair.Value, "p");
434 | }
435 | }
436 | }
437 |
438 | keys = keyList.ToArray();
439 | indexes = indexList.ToArray();
440 | metadatas = metadataList.ToArray();
441 | ints = intList.ToArray();
442 | floats = floatList.ToArray();
443 | bools = boolList.ToArray();
444 | strings = stringList.ToArray();
445 | vector3s = vector3List.ToArray();
446 | colors = colorList.ToArray();
447 | spaces = spaceList.ToArray();
448 | easeTypes = easeTypeList.ToArray();
449 | loopTypes = loopTypeList.ToArray();
450 | gameObjects = gameObjectList.ToArray();
451 | transforms = transformList.ToArray();
452 | audioClips = audioClipList.ToArray();
453 | audioSources = audioSourceList.ToArray();
454 | vector3Arrays = vector3ArrayList.ToArray();
455 | transformArrays = transformArrayList.ToArray();
456 | }
457 |
458 | void AddToList(List keyList, List indexList, IList valueList, List metadataList, KeyValuePair pair) {
459 | AddToList(keyList, indexList, valueList, metadataList, pair.Key, pair.Value);
460 | }
461 |
462 | void AddToList(List keyList, List indexList, IList valueList, List metadataList, KeyValuePair pair, string metadata) {
463 | AddToList(keyList, indexList, valueList, metadataList, pair.Key, pair.Value, metadata);
464 | }
465 |
466 | void AddToList(List keyList, List indexList, IList valueList, List metadataList, string key, object value) {
467 | AddToList(keyList, indexList, valueList, metadataList, key, value, null);
468 | }
469 |
470 | void AddToList(List keyList, List indexList, IList valueList, List metadataList, string key, object value, string metadata) {
471 | keyList.Add(key);
472 | valueList.Add((T)value);
473 | indexList.Add(valueList.Count - 1);
474 | metadataList.Add(metadata);
475 | }
476 |
477 | void DeserializeValues() {
478 | values = new Dictionary();
479 |
480 | if(null == keys) {
481 | return;
482 | }
483 |
484 | for(var i = 0; i < keys.Length; ++i) {
485 | var mappings = EventParamMappings.mappings[type];
486 | var valueType = mappings[keys[i]];
487 |
488 | if(typeof(int) == valueType) {
489 | values.Add(keys[i], ints[indexes[i]]);
490 | }
491 | else if(typeof(float) == valueType) {
492 | values.Add(keys[i], floats[indexes[i]]);
493 | }
494 | else if(typeof(bool) == valueType) {
495 | values.Add(keys[i], bools[indexes[i]]);
496 | }
497 | else if(typeof(string) == valueType) {
498 | values.Add(keys[i], strings[indexes[i]]);
499 | }
500 | else if(typeof(Vector3) == valueType) {
501 | values.Add(keys[i], vector3s[indexes[i]]);
502 | }
503 | else if(typeof(Color) == valueType) {
504 | values.Add(keys[i], colors[indexes[i]]);
505 | }
506 | else if(typeof(Space) == valueType) {
507 | values.Add(keys[i], spaces[indexes[i]]);
508 | }
509 | else if(typeof(iTween.EaseType) == valueType) {
510 | values.Add(keys[i], easeTypes[indexes[i]]);
511 | }
512 | else if(typeof(iTween.LoopType) == valueType) {
513 | values.Add(keys[i], loopTypes[indexes[i]]);
514 | }
515 | else if(typeof(GameObject) == valueType) {
516 | values.Add(keys[i], gameObjects[indexes[i]]);
517 | }
518 | else if(typeof(Transform) == valueType) {
519 | values.Add(keys[i], transforms[indexes[i]]);
520 | }
521 | else if(typeof(AudioClip) == valueType) {
522 | values.Add(keys[i], audioClips[indexes[i]]);
523 | }
524 | else if(typeof(AudioSource) == valueType) {
525 | values.Add(keys[i], audioSources[indexes[i]]);
526 | }
527 | else if(typeof(Vector3OrTransform) == valueType) {
528 | if("v" == metadatas[i]) {
529 | values.Add(keys[i], vector3s[indexes[i]]);
530 | }
531 | else if("t" == metadatas[i]) {
532 | values.Add(keys[i], transforms[indexes[i]]);
533 | }
534 | }
535 | else if(typeof(Vector3OrTransformArray) == valueType) {
536 | if("v" == metadatas[i]) {
537 | var arrayIndexes = vector3Arrays[indexes[i]];
538 | var vectorArray = new Vector3[arrayIndexes.indexes.Length];
539 | for(var idx = 0; idx < arrayIndexes.indexes.Length; ++idx) {
540 | vectorArray[idx] = vector3s[arrayIndexes.indexes[idx]];
541 | }
542 |
543 | values.Add(keys[i], vectorArray);
544 | }
545 | else if("t" == metadatas[i]) {
546 | var arrayIndexes = transformArrays[indexes[i]];
547 | var transformArray = new Transform[arrayIndexes.indexes.Length];
548 | for(var idx = 0; idx < arrayIndexes.indexes.Length; ++idx) {
549 | transformArray[idx] = transforms[arrayIndexes.indexes[idx]];
550 | }
551 |
552 | values.Add(keys[i], transformArray);
553 | }
554 | else if("p" == metadatas[i]) {
555 | values.Add(keys[i], strings[indexes[i]]);
556 | }
557 | }
558 | }
559 | }
560 | }
--------------------------------------------------------------------------------
/Assets/iTweenEditor/Helper Classes/EventParamMappings.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2009 David Koontz
2 | // Please direct any bugs/comments/suggestions to david@koontzfamily.org
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | // copies of the Software, and to permit persons to whom the Software is
9 | // furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in
12 | // all copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | // THE SOFTWARE.
21 |
22 | using System;
23 | using System.Collections.Generic;
24 | using UnityEngine;
25 |
26 | public class EventParamMappings {
27 |
28 | public static Dictionary> mappings = new Dictionary>();
29 |
30 | static EventParamMappings() {
31 | // AUDIO FROM
32 | mappings.Add(iTweenEvent.TweenType.AudioFrom, new Dictionary());
33 | mappings[iTweenEvent.TweenType.AudioFrom]["audiosource"] = typeof(AudioSource);
34 | mappings[iTweenEvent.TweenType.AudioFrom]["volume"] = typeof(float);
35 | mappings[iTweenEvent.TweenType.AudioFrom]["pitch"] = typeof(float);
36 | mappings[iTweenEvent.TweenType.AudioFrom]["time"] = typeof(float);
37 | mappings[iTweenEvent.TweenType.AudioFrom]["delay"] = typeof(float);
38 | mappings[iTweenEvent.TweenType.AudioFrom]["easetype"] = typeof(iTween.EaseType);
39 | mappings[iTweenEvent.TweenType.AudioFrom]["looptype"] = typeof(iTween.LoopType);
40 | mappings[iTweenEvent.TweenType.AudioFrom]["onstart"] = typeof(string);
41 | mappings[iTweenEvent.TweenType.AudioFrom]["onstarttarget"] = typeof(GameObject);
42 | mappings[iTweenEvent.TweenType.AudioFrom]["onstartparams"] = typeof(string);
43 | mappings[iTweenEvent.TweenType.AudioFrom]["onupdate"] = typeof(string);
44 | mappings[iTweenEvent.TweenType.AudioFrom]["onupdatetarget"] = typeof(GameObject);
45 | mappings[iTweenEvent.TweenType.AudioFrom]["onupdateparams"] = typeof(string);
46 | mappings[iTweenEvent.TweenType.AudioFrom]["oncomplete"] = typeof(string);
47 | mappings[iTweenEvent.TweenType.AudioFrom]["oncompletetarget"] = typeof(GameObject);
48 | mappings[iTweenEvent.TweenType.AudioFrom]["oncompleteparams"] = typeof(string);
49 | mappings[iTweenEvent.TweenType.AudioFrom]["ignoretimescale"] = typeof(bool);
50 |
51 | // AUDIO TO
52 | mappings.Add(iTweenEvent.TweenType.AudioTo, new Dictionary());
53 | mappings[iTweenEvent.TweenType.AudioTo]["audiosource"] = typeof(AudioSource);
54 | mappings[iTweenEvent.TweenType.AudioTo]["volume"] = typeof(float);
55 | mappings[iTweenEvent.TweenType.AudioTo]["pitch"] = typeof(float);
56 | mappings[iTweenEvent.TweenType.AudioTo]["time"] = typeof(float);
57 | mappings[iTweenEvent.TweenType.AudioTo]["delay"] = typeof(float);
58 | mappings[iTweenEvent.TweenType.AudioTo]["easetype"] = typeof(iTween.EaseType);
59 | mappings[iTweenEvent.TweenType.AudioTo]["looptype"] = typeof(iTween.LoopType);
60 | mappings[iTweenEvent.TweenType.AudioTo]["onstart"] = typeof(string);
61 | mappings[iTweenEvent.TweenType.AudioTo]["onstarttarget"] = typeof(GameObject);
62 | mappings[iTweenEvent.TweenType.AudioTo]["onstartparams"] = typeof(string);
63 | mappings[iTweenEvent.TweenType.AudioTo]["onupdate"] = typeof(string);
64 | mappings[iTweenEvent.TweenType.AudioTo]["onupdatetarget"] = typeof(GameObject);
65 | mappings[iTweenEvent.TweenType.AudioTo]["onupdateparams"] = typeof(string);
66 | mappings[iTweenEvent.TweenType.AudioTo]["oncomplete"] = typeof(string);
67 | mappings[iTweenEvent.TweenType.AudioTo]["oncompletetarget"] = typeof(GameObject);
68 | mappings[iTweenEvent.TweenType.AudioTo]["oncompleteparams"] = typeof(string);
69 | mappings[iTweenEvent.TweenType.AudioTo]["ignoretimescale"] = typeof(bool);
70 |
71 | // AUDIO UPDATE
72 | mappings.Add(iTweenEvent.TweenType.AudioUpdate, new Dictionary());
73 | mappings[iTweenEvent.TweenType.AudioUpdate]["audiosource"] = typeof(AudioSource);
74 | mappings[iTweenEvent.TweenType.AudioUpdate]["volume"] = typeof(float);
75 | mappings[iTweenEvent.TweenType.AudioUpdate]["pitch"] = typeof(float);
76 | mappings[iTweenEvent.TweenType.AudioUpdate]["time"] = typeof(float);
77 |
78 | // CAMERA FADE FROM
79 | mappings.Add(iTweenEvent.TweenType.CameraFadeFrom, new Dictionary());
80 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["amount"] = typeof(float);
81 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["time"] = typeof(float);
82 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["delay"] = typeof(float);
83 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["easetype"] = typeof(iTween.EaseType);
84 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["looptype"] = typeof(iTween.LoopType);
85 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onstart"] = typeof(string);
86 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onstarttarget"] = typeof(GameObject);
87 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onstartparams"] = typeof(string);
88 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onupdate"] = typeof(string);
89 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onupdatetarget"] = typeof(GameObject);
90 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["onupdateparams"] = typeof(string);
91 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["oncomplete"] = typeof(string);
92 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["oncompletetarget"] = typeof(GameObject);
93 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["oncompleteparams"] = typeof(string);
94 | mappings[iTweenEvent.TweenType.CameraFadeFrom]["ignoretimescale"] = typeof(bool);
95 |
96 | // CAMERA FADE TO
97 | mappings.Add(iTweenEvent.TweenType.CameraFadeTo, new Dictionary());
98 | mappings[iTweenEvent.TweenType.CameraFadeTo]["amount"] = typeof(float);
99 | mappings[iTweenEvent.TweenType.CameraFadeTo]["time"] = typeof(float);
100 | mappings[iTweenEvent.TweenType.CameraFadeTo]["delay"] = typeof(float);
101 | mappings[iTweenEvent.TweenType.CameraFadeTo]["easetype"] = typeof(iTween.EaseType);
102 | mappings[iTweenEvent.TweenType.CameraFadeTo]["looptype"] = typeof(iTween.LoopType);
103 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onstart"] = typeof(string);
104 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onstarttarget"] = typeof(GameObject);
105 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onstartparams"] = typeof(string);
106 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onupdate"] = typeof(string);
107 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onupdatetarget"] = typeof(GameObject);
108 | mappings[iTweenEvent.TweenType.CameraFadeTo]["onupdateparams"] = typeof(string);
109 | mappings[iTweenEvent.TweenType.CameraFadeTo]["oncomplete"] = typeof(string);
110 | mappings[iTweenEvent.TweenType.CameraFadeTo]["oncompletetarget"] = typeof(GameObject);
111 | mappings[iTweenEvent.TweenType.CameraFadeTo]["oncompleteparams"] = typeof(string);
112 | mappings[iTweenEvent.TweenType.CameraFadeTo]["ignoretimescale"] = typeof(bool);
113 |
114 | // COLOR FROM
115 | mappings.Add(iTweenEvent.TweenType.ColorFrom, new Dictionary());
116 | mappings[iTweenEvent.TweenType.ColorFrom]["color"] = typeof(Color);
117 | mappings[iTweenEvent.TweenType.ColorFrom]["r"] = typeof(float);
118 | mappings[iTweenEvent.TweenType.ColorFrom]["g"] = typeof(float);
119 | mappings[iTweenEvent.TweenType.ColorFrom]["b"] = typeof(float);
120 | mappings[iTweenEvent.TweenType.ColorFrom]["a"] = typeof(float);
121 | mappings[iTweenEvent.TweenType.ColorFrom]["namedcolorvalue"] = typeof(string);
122 | mappings[iTweenEvent.TweenType.ColorFrom]["includechildren"] = typeof(bool);
123 | mappings[iTweenEvent.TweenType.ColorFrom]["time"] = typeof(float);
124 | mappings[iTweenEvent.TweenType.ColorFrom]["delay"] = typeof(float);
125 | mappings[iTweenEvent.TweenType.ColorFrom]["easetype"] = typeof(iTween.EaseType);
126 | mappings[iTweenEvent.TweenType.ColorFrom]["looptype"] = typeof(iTween.LoopType);
127 | mappings[iTweenEvent.TweenType.ColorFrom]["onstart"] = typeof(string);
128 | mappings[iTweenEvent.TweenType.ColorFrom]["onstarttarget"] = typeof(GameObject);
129 | mappings[iTweenEvent.TweenType.ColorFrom]["onstartparams"] = typeof(string);
130 | mappings[iTweenEvent.TweenType.ColorFrom]["onupdate"] = typeof(string);
131 | mappings[iTweenEvent.TweenType.ColorFrom]["onupdatetarget"] = typeof(GameObject);
132 | mappings[iTweenEvent.TweenType.ColorFrom]["onupdateparams"] = typeof(string);
133 | mappings[iTweenEvent.TweenType.ColorFrom]["oncomplete"] = typeof(string);
134 | mappings[iTweenEvent.TweenType.ColorFrom]["oncompletetarget"] = typeof(GameObject);
135 | mappings[iTweenEvent.TweenType.ColorFrom]["oncompleteparams"] = typeof(string);
136 | mappings[iTweenEvent.TweenType.ColorFrom]["ignoretimescale"] = typeof(bool);
137 |
138 | // COLOR TO
139 | mappings.Add(iTweenEvent.TweenType.ColorTo, new Dictionary());
140 | mappings[iTweenEvent.TweenType.ColorTo]["color"] = typeof(Color);
141 | mappings[iTweenEvent.TweenType.ColorTo]["r"] = typeof(float);
142 | mappings[iTweenEvent.TweenType.ColorTo]["g"] = typeof(float);
143 | mappings[iTweenEvent.TweenType.ColorTo]["b"] = typeof(float);
144 | mappings[iTweenEvent.TweenType.ColorTo]["a"] = typeof(float);
145 | mappings[iTweenEvent.TweenType.ColorTo]["namedcolorvalue"] = typeof(string);
146 | mappings[iTweenEvent.TweenType.ColorTo]["includechildren"] = typeof(bool);
147 | mappings[iTweenEvent.TweenType.ColorTo]["time"] = typeof(float);
148 | mappings[iTweenEvent.TweenType.ColorTo]["delay"] = typeof(float);
149 | mappings[iTweenEvent.TweenType.ColorTo]["easetype"] = typeof(iTween.EaseType);
150 | mappings[iTweenEvent.TweenType.ColorTo]["looptype"] = typeof(iTween.LoopType);
151 | mappings[iTweenEvent.TweenType.ColorTo]["onstart"] = typeof(string);
152 | mappings[iTweenEvent.TweenType.ColorTo]["onstarttarget"] = typeof(GameObject);
153 | mappings[iTweenEvent.TweenType.ColorTo]["onstartparams"] = typeof(string);
154 | mappings[iTweenEvent.TweenType.ColorTo]["onupdate"] = typeof(string);
155 | mappings[iTweenEvent.TweenType.ColorTo]["onupdatetarget"] = typeof(GameObject);
156 | mappings[iTweenEvent.TweenType.ColorTo]["onupdateparams"] = typeof(string);
157 | mappings[iTweenEvent.TweenType.ColorTo]["oncomplete"] = typeof(string);
158 | mappings[iTweenEvent.TweenType.ColorTo]["oncompletetarget"] = typeof(GameObject);
159 | mappings[iTweenEvent.TweenType.ColorTo]["oncompleteparams"] = typeof(string);
160 | mappings[iTweenEvent.TweenType.ColorTo]["ignoretimescale"] = typeof(bool);
161 |
162 | // COLOR UPDATE
163 | mappings.Add(iTweenEvent.TweenType.ColorUpdate, new Dictionary());
164 | mappings[iTweenEvent.TweenType.ColorUpdate]["color"] = typeof(Color);
165 | mappings[iTweenEvent.TweenType.ColorUpdate]["r"] = typeof(float);
166 | mappings[iTweenEvent.TweenType.ColorUpdate]["g"] = typeof(float);
167 | mappings[iTweenEvent.TweenType.ColorUpdate]["b"] = typeof(float);
168 | mappings[iTweenEvent.TweenType.ColorUpdate]["a"] = typeof(float);
169 | mappings[iTweenEvent.TweenType.ColorUpdate]["namedcolorvalue"] = typeof(string);
170 | mappings[iTweenEvent.TweenType.ColorUpdate]["includechildren"] = typeof(bool);
171 | mappings[iTweenEvent.TweenType.ColorUpdate]["time"] = typeof(float);
172 |
173 | // FADE FROM
174 | mappings.Add(iTweenEvent.TweenType.FadeFrom, new Dictionary());
175 | mappings[iTweenEvent.TweenType.FadeFrom]["alpha"] = typeof(float);
176 | mappings[iTweenEvent.TweenType.FadeFrom]["amount"] = typeof(float);
177 | mappings[iTweenEvent.TweenType.FadeFrom]["includechildren"] = typeof(bool);
178 | mappings[iTweenEvent.TweenType.FadeFrom]["time"] = typeof(float);
179 | mappings[iTweenEvent.TweenType.FadeFrom]["delay"] = typeof(float);
180 | mappings[iTweenEvent.TweenType.FadeFrom]["easetype"] = typeof(iTween.EaseType);
181 | mappings[iTweenEvent.TweenType.FadeFrom]["looptype"] = typeof(iTween.LoopType);
182 | mappings[iTweenEvent.TweenType.FadeFrom]["onstart"] = typeof(string);
183 | mappings[iTweenEvent.TweenType.FadeFrom]["onstarttarget"] = typeof(GameObject);
184 | mappings[iTweenEvent.TweenType.FadeFrom]["onstartparams"] = typeof(string);
185 | mappings[iTweenEvent.TweenType.FadeFrom]["onupdate"] = typeof(string);
186 | mappings[iTweenEvent.TweenType.FadeFrom]["onupdatetarget"] = typeof(GameObject);
187 | mappings[iTweenEvent.TweenType.FadeFrom]["onupdateparams"] = typeof(string);
188 | mappings[iTweenEvent.TweenType.FadeFrom]["oncomplete"] = typeof(string);
189 | mappings[iTweenEvent.TweenType.FadeFrom]["oncompletetarget"] = typeof(GameObject);
190 | mappings[iTweenEvent.TweenType.FadeFrom]["oncompleteparams"] = typeof(string);
191 | mappings[iTweenEvent.TweenType.FadeFrom]["ignoretimescale"] = typeof(bool);
192 |
193 | // FADE TO
194 | mappings.Add(iTweenEvent.TweenType.FadeTo, new Dictionary());
195 | mappings[iTweenEvent.TweenType.FadeTo]["alpha"] = typeof(float);
196 | mappings[iTweenEvent.TweenType.FadeTo]["amount"] = typeof(float);
197 | mappings[iTweenEvent.TweenType.FadeTo]["includechildren"] = typeof(bool);
198 | mappings[iTweenEvent.TweenType.FadeTo]["time"] = typeof(float);
199 | mappings[iTweenEvent.TweenType.FadeTo]["delay"] = typeof(float);
200 | mappings[iTweenEvent.TweenType.FadeTo]["easetype"] = typeof(iTween.EaseType);
201 | mappings[iTweenEvent.TweenType.FadeTo]["looptype"] = typeof(iTween.LoopType);
202 | mappings[iTweenEvent.TweenType.FadeTo]["onstart"] = typeof(string);
203 | mappings[iTweenEvent.TweenType.FadeTo]["onstarttarget"] = typeof(GameObject);
204 | mappings[iTweenEvent.TweenType.FadeTo]["onstartparams"] = typeof(string);
205 | mappings[iTweenEvent.TweenType.FadeTo]["onupdate"] = typeof(string);
206 | mappings[iTweenEvent.TweenType.FadeTo]["onupdatetarget"] = typeof(GameObject);
207 | mappings[iTweenEvent.TweenType.FadeTo]["onupdateparams"] = typeof(string);
208 | mappings[iTweenEvent.TweenType.FadeTo]["oncomplete"] = typeof(string);
209 | mappings[iTweenEvent.TweenType.FadeTo]["oncompletetarget"] = typeof(GameObject);
210 | mappings[iTweenEvent.TweenType.FadeTo]["oncompleteparams"] = typeof(string);
211 | mappings[iTweenEvent.TweenType.FadeTo]["ignoretimescale"] = typeof(bool);
212 |
213 | // FADE UPDATE
214 | mappings.Add(iTweenEvent.TweenType.FadeUpdate, new Dictionary());
215 | mappings[iTweenEvent.TweenType.FadeUpdate]["alpha"] = typeof(float);
216 | mappings[iTweenEvent.TweenType.FadeUpdate]["includechildren"] = typeof(bool);
217 | mappings[iTweenEvent.TweenType.FadeUpdate]["time"] = typeof(float);
218 |
219 | // LOOK FROM
220 | mappings.Add(iTweenEvent.TweenType.LookFrom, new Dictionary());
221 | mappings[iTweenEvent.TweenType.LookFrom]["looktarget"] = typeof(Vector3OrTransform);
222 | mappings[iTweenEvent.TweenType.LookFrom]["axis"] = typeof(string);
223 | mappings[iTweenEvent.TweenType.LookFrom]["time"] = typeof(float);
224 | mappings[iTweenEvent.TweenType.LookFrom]["speed"] = typeof(float);
225 | mappings[iTweenEvent.TweenType.LookFrom]["delay"] = typeof(float);
226 | mappings[iTweenEvent.TweenType.LookFrom]["easetype"] = typeof(iTween.EaseType);
227 | mappings[iTweenEvent.TweenType.LookFrom]["looptype"] = typeof(iTween.LoopType);
228 | mappings[iTweenEvent.TweenType.LookFrom]["onstart"] = typeof(string);
229 | mappings[iTweenEvent.TweenType.LookFrom]["onstarttarget"] = typeof(GameObject);
230 | mappings[iTweenEvent.TweenType.LookFrom]["onstartparams"] = typeof(string);
231 | mappings[iTweenEvent.TweenType.LookFrom]["onupdate"] = typeof(string);
232 | mappings[iTweenEvent.TweenType.LookFrom]["onupdatetarget"] = typeof(GameObject);
233 | mappings[iTweenEvent.TweenType.LookFrom]["onupdateparams"] = typeof(string);
234 | mappings[iTweenEvent.TweenType.LookFrom]["oncomplete"] = typeof(string);
235 | mappings[iTweenEvent.TweenType.LookFrom]["oncompletetarget"] = typeof(GameObject);
236 | mappings[iTweenEvent.TweenType.LookFrom]["oncompleteparams"] = typeof(string);
237 | mappings[iTweenEvent.TweenType.LookFrom]["ignoretimescale"] = typeof(bool);
238 |
239 | // LOOK TO
240 | mappings.Add(iTweenEvent.TweenType.LookTo, new Dictionary());
241 | mappings[iTweenEvent.TweenType.LookTo]["looktarget"] = typeof(Vector3OrTransform);
242 | mappings[iTweenEvent.TweenType.LookTo]["axis"] = typeof(string);
243 | mappings[iTweenEvent.TweenType.LookTo]["time"] = typeof(float);
244 | mappings[iTweenEvent.TweenType.LookTo]["speed"] = typeof(float);
245 | mappings[iTweenEvent.TweenType.LookTo]["delay"] = typeof(float);
246 | mappings[iTweenEvent.TweenType.LookTo]["easetype"] = typeof(iTween.EaseType);
247 | mappings[iTweenEvent.TweenType.LookTo]["looptype"] = typeof(iTween.LoopType);
248 | mappings[iTweenEvent.TweenType.LookTo]["onstart"] = typeof(string);
249 | mappings[iTweenEvent.TweenType.LookTo]["onstarttarget"] = typeof(GameObject);
250 | mappings[iTweenEvent.TweenType.LookTo]["onstartparams"] = typeof(string);
251 | mappings[iTweenEvent.TweenType.LookTo]["onupdate"] = typeof(string);
252 | mappings[iTweenEvent.TweenType.LookTo]["onupdatetarget"] = typeof(GameObject);
253 | mappings[iTweenEvent.TweenType.LookTo]["onupdateparams"] = typeof(string);
254 | mappings[iTweenEvent.TweenType.LookTo]["oncomplete"] = typeof(string);
255 | mappings[iTweenEvent.TweenType.LookTo]["oncompletetarget"] = typeof(GameObject);
256 | mappings[iTweenEvent.TweenType.LookTo]["oncompleteparams"] = typeof(string);
257 | mappings[iTweenEvent.TweenType.LookTo]["ignoretimescale"] = typeof(bool);
258 |
259 | // LOOK UPDATE
260 | mappings.Add(iTweenEvent.TweenType.LookUpdate, new Dictionary());
261 | mappings[iTweenEvent.TweenType.LookUpdate]["looktarget"] = typeof(Vector3OrTransform);
262 | mappings[iTweenEvent.TweenType.LookUpdate]["axis"] = typeof(string);
263 | mappings[iTweenEvent.TweenType.LookUpdate]["time"] = typeof(float);
264 |
265 | // MOVE ADD
266 | mappings.Add(iTweenEvent.TweenType.MoveAdd, new Dictionary());
267 | mappings[iTweenEvent.TweenType.MoveAdd]["amount"] = typeof(Vector3);
268 | mappings[iTweenEvent.TweenType.MoveAdd]["x"] = typeof(float);
269 | mappings[iTweenEvent.TweenType.MoveAdd]["y"] = typeof(float);
270 | mappings[iTweenEvent.TweenType.MoveAdd]["z"] = typeof(float);
271 | mappings[iTweenEvent.TweenType.MoveAdd]["orienttopath"] = typeof(bool);
272 | mappings[iTweenEvent.TweenType.MoveAdd]["looktarget"] = typeof(Vector3OrTransform);
273 | mappings[iTweenEvent.TweenType.MoveAdd]["looktime"] = typeof(float);
274 | mappings[iTweenEvent.TweenType.MoveAdd]["axis"] = typeof(string);
275 | mappings[iTweenEvent.TweenType.MoveAdd]["space"] = typeof(Space);
276 | mappings[iTweenEvent.TweenType.MoveAdd]["time"] = typeof(float);
277 | mappings[iTweenEvent.TweenType.MoveAdd]["speed"] = typeof(float);
278 | mappings[iTweenEvent.TweenType.MoveAdd]["delay"] = typeof(float);
279 | mappings[iTweenEvent.TweenType.MoveAdd]["easetype"] = typeof(iTween.EaseType);
280 | mappings[iTweenEvent.TweenType.MoveAdd]["looptype"] = typeof(iTween.LoopType);
281 | mappings[iTweenEvent.TweenType.MoveAdd]["onstart"] = typeof(string);
282 | mappings[iTweenEvent.TweenType.MoveAdd]["onstarttarget"] = typeof(GameObject);
283 | mappings[iTweenEvent.TweenType.MoveAdd]["onstartparams"] = typeof(string);
284 | mappings[iTweenEvent.TweenType.MoveAdd]["onupdate"] = typeof(string);
285 | mappings[iTweenEvent.TweenType.MoveAdd]["onupdatetarget"] = typeof(GameObject);
286 | mappings[iTweenEvent.TweenType.MoveAdd]["onupdateparams"] = typeof(string);
287 | mappings[iTweenEvent.TweenType.MoveAdd]["oncomplete"] = typeof(string);
288 | mappings[iTweenEvent.TweenType.MoveAdd]["oncompletetarget"] = typeof(GameObject);
289 | mappings[iTweenEvent.TweenType.MoveAdd]["oncompleteparams"] = typeof(string);
290 | mappings[iTweenEvent.TweenType.MoveAdd]["ignoretimescale"] = typeof(bool);
291 |
292 | // MOVE BY
293 | mappings.Add(iTweenEvent.TweenType.MoveBy, new Dictionary());
294 | mappings[iTweenEvent.TweenType.MoveBy]["time"] = typeof(float);
295 | mappings[iTweenEvent.TweenType.MoveBy]["speed"] = typeof(float);
296 | mappings[iTweenEvent.TweenType.MoveBy]["delay"] = typeof(float);
297 | mappings[iTweenEvent.TweenType.MoveBy]["amount"] = typeof(Vector3);
298 | mappings[iTweenEvent.TweenType.MoveBy]["x"] = typeof(float);
299 | mappings[iTweenEvent.TweenType.MoveBy]["y"] = typeof(float);
300 | mappings[iTweenEvent.TweenType.MoveBy]["z"] = typeof(float);
301 | mappings[iTweenEvent.TweenType.MoveBy]["orienttopath"] = typeof(bool);
302 | mappings[iTweenEvent.TweenType.MoveBy]["looktarget"] = typeof(Vector3OrTransform);
303 | mappings[iTweenEvent.TweenType.MoveBy]["looktime"] = typeof(float);
304 | mappings[iTweenEvent.TweenType.MoveBy]["axis"] = typeof(string);
305 | mappings[iTweenEvent.TweenType.MoveBy]["space"] = typeof(Space);
306 | mappings[iTweenEvent.TweenType.MoveBy]["easetype"] = typeof(iTween.EaseType);
307 | mappings[iTweenEvent.TweenType.MoveBy]["looptype"] = typeof(iTween.LoopType);
308 | mappings[iTweenEvent.TweenType.MoveBy]["onstart"] = typeof(string);
309 | mappings[iTweenEvent.TweenType.MoveBy]["onstarttarget"] = typeof(GameObject);
310 | mappings[iTweenEvent.TweenType.MoveBy]["onstartparams"] = typeof(string);
311 | mappings[iTweenEvent.TweenType.MoveBy]["onupdate"] = typeof(string);
312 | mappings[iTweenEvent.TweenType.MoveBy]["onupdatetarget"] = typeof(GameObject);
313 | mappings[iTweenEvent.TweenType.MoveBy]["onupdateparams"] = typeof(string);
314 | mappings[iTweenEvent.TweenType.MoveBy]["oncomplete"] = typeof(string);
315 | mappings[iTweenEvent.TweenType.MoveBy]["oncompletetarget"] = typeof(GameObject);
316 | mappings[iTweenEvent.TweenType.MoveBy]["oncompleteparams"] = typeof(string);
317 | mappings[iTweenEvent.TweenType.MoveBy]["ignoretimescale"] = typeof(bool);
318 |
319 | // MOVE FROM
320 | mappings.Add(iTweenEvent.TweenType.MoveFrom, new Dictionary());
321 | mappings[iTweenEvent.TweenType.MoveFrom]["position"] = typeof(Vector3OrTransform);
322 | mappings[iTweenEvent.TweenType.MoveFrom]["path"] = typeof(Vector3OrTransformArray);
323 | mappings[iTweenEvent.TweenType.MoveFrom]["movetopath"] = typeof(bool);
324 | mappings[iTweenEvent.TweenType.MoveFrom]["x"] = typeof(float);
325 | mappings[iTweenEvent.TweenType.MoveFrom]["y"] = typeof(float);
326 | mappings[iTweenEvent.TweenType.MoveFrom]["z"] = typeof(float);
327 | mappings[iTweenEvent.TweenType.MoveFrom]["orienttopath"] = typeof(bool);
328 | mappings[iTweenEvent.TweenType.MoveFrom]["looktarget"] = typeof(Vector3OrTransform);
329 | mappings[iTweenEvent.TweenType.MoveFrom]["looktime"] = typeof(float);
330 | mappings[iTweenEvent.TweenType.MoveFrom]["lookahead"] = typeof(float);
331 | mappings[iTweenEvent.TweenType.MoveFrom]["axis"] = typeof(string);
332 | mappings[iTweenEvent.TweenType.MoveFrom]["islocal"] = typeof(bool);
333 | mappings[iTweenEvent.TweenType.MoveFrom]["time"] = typeof(float);
334 | mappings[iTweenEvent.TweenType.MoveFrom]["speed"] = typeof(float);
335 | mappings[iTweenEvent.TweenType.MoveFrom]["delay"] = typeof(float);
336 | mappings[iTweenEvent.TweenType.MoveFrom]["easetype"] = typeof(iTween.EaseType);
337 | mappings[iTweenEvent.TweenType.MoveFrom]["looptype"] = typeof(iTween.LoopType);
338 | mappings[iTweenEvent.TweenType.MoveFrom]["onstart"] = typeof(string);
339 | mappings[iTweenEvent.TweenType.MoveFrom]["onstarttarget"] = typeof(GameObject);
340 | mappings[iTweenEvent.TweenType.MoveFrom]["onstartparams"] = typeof(string);
341 | mappings[iTweenEvent.TweenType.MoveFrom]["onupdate"] = typeof(string);
342 | mappings[iTweenEvent.TweenType.MoveFrom]["onupdatetarget"] = typeof(GameObject);
343 | mappings[iTweenEvent.TweenType.MoveFrom]["onupdateparams"] = typeof(string);
344 | mappings[iTweenEvent.TweenType.MoveFrom]["oncomplete"] = typeof(string);
345 | mappings[iTweenEvent.TweenType.MoveFrom]["oncompletetarget"] = typeof(GameObject);
346 | mappings[iTweenEvent.TweenType.MoveFrom]["oncompleteparams"] = typeof(string);
347 | mappings[iTweenEvent.TweenType.MoveFrom]["ignoretimescale"] = typeof(bool);
348 |
349 | // MOVE TO
350 | mappings.Add(iTweenEvent.TweenType.MoveTo, new Dictionary());
351 | mappings[iTweenEvent.TweenType.MoveTo]["position"] = typeof(Vector3OrTransform);
352 | mappings[iTweenEvent.TweenType.MoveTo]["path"] = typeof(Vector3OrTransformArray);
353 | mappings[iTweenEvent.TweenType.MoveTo]["movetopath"] = typeof(bool);
354 | mappings[iTweenEvent.TweenType.MoveTo]["x"] = typeof(float);
355 | mappings[iTweenEvent.TweenType.MoveTo]["y"] = typeof(float);
356 | mappings[iTweenEvent.TweenType.MoveTo]["z"] = typeof(float);
357 | mappings[iTweenEvent.TweenType.MoveTo]["orienttopath"] = typeof(bool);
358 | mappings[iTweenEvent.TweenType.MoveTo]["looktarget"] = typeof(Vector3OrTransform);
359 | mappings[iTweenEvent.TweenType.MoveTo]["looktime"] = typeof(float);
360 | mappings[iTweenEvent.TweenType.MoveTo]["lookahead"] = typeof(float);
361 | mappings[iTweenEvent.TweenType.MoveTo]["axis"] = typeof(string);
362 | mappings[iTweenEvent.TweenType.MoveTo]["islocal"] = typeof(bool);
363 | mappings[iTweenEvent.TweenType.MoveTo]["time"] = typeof(float);
364 | mappings[iTweenEvent.TweenType.MoveTo]["speed"] = typeof(float);
365 | mappings[iTweenEvent.TweenType.MoveTo]["delay"] = typeof(float);
366 | mappings[iTweenEvent.TweenType.MoveTo]["easetype"] = typeof(iTween.EaseType);
367 | mappings[iTweenEvent.TweenType.MoveTo]["looptype"] = typeof(iTween.LoopType);
368 | mappings[iTweenEvent.TweenType.MoveTo]["onstart"] = typeof(string);
369 | mappings[iTweenEvent.TweenType.MoveTo]["onstarttarget"] = typeof(GameObject);
370 | mappings[iTweenEvent.TweenType.MoveTo]["onstartparams"] = typeof(string);
371 | mappings[iTweenEvent.TweenType.MoveTo]["onupdate"] = typeof(string);
372 | mappings[iTweenEvent.TweenType.MoveTo]["onupdatetarget"] = typeof(GameObject);
373 | mappings[iTweenEvent.TweenType.MoveTo]["onupdateparams"] = typeof(string);
374 | mappings[iTweenEvent.TweenType.MoveTo]["oncomplete"] = typeof(string);
375 | mappings[iTweenEvent.TweenType.MoveTo]["oncompletetarget"] = typeof(GameObject);
376 | mappings[iTweenEvent.TweenType.MoveTo]["oncompleteparams"] = typeof(string);
377 | mappings[iTweenEvent.TweenType.MoveTo]["ignoretimescale"] = typeof(bool);
378 |
379 | // MOVE UPDATE
380 | mappings.Add(iTweenEvent.TweenType.MoveUpdate, new Dictionary());
381 | mappings[iTweenEvent.TweenType.MoveUpdate]["position"] = typeof(Vector3OrTransform);
382 | mappings[iTweenEvent.TweenType.MoveUpdate]["x"] = typeof(float);
383 | mappings[iTweenEvent.TweenType.MoveUpdate]["y"] = typeof(float);
384 | mappings[iTweenEvent.TweenType.MoveUpdate]["z"] = typeof(float);
385 | mappings[iTweenEvent.TweenType.MoveUpdate]["orienttopath"] = typeof(bool);
386 | mappings[iTweenEvent.TweenType.MoveUpdate]["looktarget"] = typeof(Vector3OrTransform);
387 | mappings[iTweenEvent.TweenType.MoveUpdate]["looktime"] = typeof(float);
388 | mappings[iTweenEvent.TweenType.MoveUpdate]["axis"] = typeof(string);
389 | mappings[iTweenEvent.TweenType.MoveUpdate]["islocal"] = typeof(bool);
390 | mappings[iTweenEvent.TweenType.MoveUpdate]["time"] = typeof(float);
391 |
392 | // PUNCH POSITION
393 | mappings.Add(iTweenEvent.TweenType.PunchPosition, new Dictionary());
394 | mappings[iTweenEvent.TweenType.PunchPosition]["position"] = typeof(Vector3OrTransform);
395 | mappings[iTweenEvent.TweenType.PunchPosition]["amount"] = typeof(Vector3);
396 | mappings[iTweenEvent.TweenType.PunchPosition]["x"] = typeof(float);
397 | mappings[iTweenEvent.TweenType.PunchPosition]["y"] = typeof(float);
398 | mappings[iTweenEvent.TweenType.PunchPosition]["z"] = typeof(float);
399 | mappings[iTweenEvent.TweenType.PunchPosition]["space"] = typeof(Space);
400 | mappings[iTweenEvent.TweenType.PunchPosition]["looktarget"] = typeof(Vector3OrTransform);
401 | mappings[iTweenEvent.TweenType.PunchPosition]["looktime"] = typeof(float);
402 | mappings[iTweenEvent.TweenType.PunchPosition]["axis"] = typeof(string);
403 | mappings[iTweenEvent.TweenType.PunchPosition]["time"] = typeof(float);
404 | mappings[iTweenEvent.TweenType.PunchPosition]["delay"] = typeof(float);
405 | mappings[iTweenEvent.TweenType.PunchPosition]["looptype"] = typeof(iTween.LoopType);
406 | mappings[iTweenEvent.TweenType.PunchPosition]["onstart"] = typeof(string);
407 | mappings[iTweenEvent.TweenType.PunchPosition]["onstarttarget"] = typeof(GameObject);
408 | mappings[iTweenEvent.TweenType.PunchPosition]["onstartparams"] = typeof(string);
409 | mappings[iTweenEvent.TweenType.PunchPosition]["onupdate"] = typeof(string);
410 | mappings[iTweenEvent.TweenType.PunchPosition]["onupdatetarget"] = typeof(GameObject);
411 | mappings[iTweenEvent.TweenType.PunchPosition]["onupdateparams"] = typeof(string);
412 | mappings[iTweenEvent.TweenType.PunchPosition]["oncomplete"] = typeof(string);
413 | mappings[iTweenEvent.TweenType.PunchPosition]["oncompletetarget"] = typeof(GameObject);
414 | mappings[iTweenEvent.TweenType.PunchPosition]["oncompleteparams"] = typeof(string);
415 | mappings[iTweenEvent.TweenType.PunchPosition]["ignoretimescale"] = typeof(bool);
416 |
417 | // PUNCH ROTATION
418 | mappings.Add(iTweenEvent.TweenType.PunchRotation, new Dictionary());
419 | mappings[iTweenEvent.TweenType.PunchRotation]["position"] = typeof(Vector3OrTransform);
420 | mappings[iTweenEvent.TweenType.PunchRotation]["amount"] = typeof(Vector3);
421 | mappings[iTweenEvent.TweenType.PunchRotation]["x"] = typeof(float);
422 | mappings[iTweenEvent.TweenType.PunchRotation]["y"] = typeof(float);
423 | mappings[iTweenEvent.TweenType.PunchRotation]["z"] = typeof(float);
424 | mappings[iTweenEvent.TweenType.PunchRotation]["space"] = typeof(Space);
425 | mappings[iTweenEvent.TweenType.PunchRotation]["time"] = typeof(float);
426 | mappings[iTweenEvent.TweenType.PunchRotation]["delay"] = typeof(float);
427 | mappings[iTweenEvent.TweenType.PunchRotation]["looptype"] = typeof(iTween.LoopType);
428 | mappings[iTweenEvent.TweenType.PunchRotation]["onstart"] = typeof(string);
429 | mappings[iTweenEvent.TweenType.PunchRotation]["onstarttarget"] = typeof(GameObject);
430 | mappings[iTweenEvent.TweenType.PunchRotation]["onstartparams"] = typeof(string);
431 | mappings[iTweenEvent.TweenType.PunchRotation]["onupdate"] = typeof(string);
432 | mappings[iTweenEvent.TweenType.PunchRotation]["onupdatetarget"] = typeof(GameObject);
433 | mappings[iTweenEvent.TweenType.PunchRotation]["onupdateparams"] = typeof(string);
434 | mappings[iTweenEvent.TweenType.PunchRotation]["oncomplete"] = typeof(string);
435 | mappings[iTweenEvent.TweenType.PunchRotation]["oncompletetarget"] = typeof(GameObject);
436 | mappings[iTweenEvent.TweenType.PunchRotation]["oncompleteparams"] = typeof(string);
437 | mappings[iTweenEvent.TweenType.PunchRotation]["ignoretimescale"] = typeof(bool);
438 |
439 | // PUNCH SCALE
440 | mappings.Add(iTweenEvent.TweenType.PunchScale, new Dictionary());
441 | mappings[iTweenEvent.TweenType.PunchScale]["position"] = typeof(Vector3OrTransform);
442 | mappings[iTweenEvent.TweenType.PunchScale]["amount"] = typeof(Vector3);
443 | mappings[iTweenEvent.TweenType.PunchScale]["x"] = typeof(float);
444 | mappings[iTweenEvent.TweenType.PunchScale]["y"] = typeof(float);
445 | mappings[iTweenEvent.TweenType.PunchScale]["z"] = typeof(float);
446 | mappings[iTweenEvent.TweenType.PunchScale]["time"] = typeof(float);
447 | mappings[iTweenEvent.TweenType.PunchScale]["delay"] = typeof(float);
448 | mappings[iTweenEvent.TweenType.PunchScale]["looptype"] = typeof(iTween.LoopType);
449 | mappings[iTweenEvent.TweenType.PunchScale]["onstart"] = typeof(string);
450 | mappings[iTweenEvent.TweenType.PunchScale]["onstarttarget"] = typeof(GameObject);
451 | mappings[iTweenEvent.TweenType.PunchScale]["onstartparams"] = typeof(string);
452 | mappings[iTweenEvent.TweenType.PunchScale]["onupdate"] = typeof(string);
453 | mappings[iTweenEvent.TweenType.PunchScale]["onupdatetarget"] = typeof(GameObject);
454 | mappings[iTweenEvent.TweenType.PunchScale]["onupdateparams"] = typeof(string);
455 | mappings[iTweenEvent.TweenType.PunchScale]["oncomplete"] = typeof(string);
456 | mappings[iTweenEvent.TweenType.PunchScale]["oncompletetarget"] = typeof(GameObject);
457 | mappings[iTweenEvent.TweenType.PunchScale]["oncompleteparams"] = typeof(string);
458 | mappings[iTweenEvent.TweenType.PunchScale]["ignoretimescale"] = typeof(bool);
459 |
460 | // ROTATE ADD
461 | mappings.Add(iTweenEvent.TweenType.RotateAdd, new Dictionary());
462 | mappings[iTweenEvent.TweenType.RotateAdd]["amount"] = typeof(Vector3);
463 | mappings[iTweenEvent.TweenType.RotateAdd]["x"] = typeof(float);
464 | mappings[iTweenEvent.TweenType.RotateAdd]["y"] = typeof(float);
465 | mappings[iTweenEvent.TweenType.RotateAdd]["z"] = typeof(float);
466 | mappings[iTweenEvent.TweenType.RotateAdd]["space"] = typeof(Space);
467 | mappings[iTweenEvent.TweenType.RotateAdd]["time"] = typeof(float);
468 | mappings[iTweenEvent.TweenType.RotateAdd]["speed"] = typeof(float);
469 | mappings[iTweenEvent.TweenType.RotateAdd]["delay"] = typeof(float);
470 | mappings[iTweenEvent.TweenType.RotateAdd]["easetype"] = typeof(iTween.EaseType);
471 | mappings[iTweenEvent.TweenType.RotateAdd]["looptype"] = typeof(iTween.LoopType);
472 | mappings[iTweenEvent.TweenType.RotateAdd]["onstart"] = typeof(string);
473 | mappings[iTweenEvent.TweenType.RotateAdd]["onstarttarget"] = typeof(GameObject);
474 | mappings[iTweenEvent.TweenType.RotateAdd]["onstartparams"] = typeof(string);
475 | mappings[iTweenEvent.TweenType.RotateAdd]["onupdate"] = typeof(string);
476 | mappings[iTweenEvent.TweenType.RotateAdd]["onupdatetarget"] = typeof(GameObject);
477 | mappings[iTweenEvent.TweenType.RotateAdd]["onupdateparams"] = typeof(string);
478 | mappings[iTweenEvent.TweenType.RotateAdd]["oncomplete"] = typeof(string);
479 | mappings[iTweenEvent.TweenType.RotateAdd]["oncompletetarget"] = typeof(GameObject);
480 | mappings[iTweenEvent.TweenType.RotateAdd]["oncompleteparams"] = typeof(string);
481 | mappings[iTweenEvent.TweenType.RotateAdd]["ignoretimescale"] = typeof(bool);
482 |
483 | // ROTATE BY
484 | mappings.Add(iTweenEvent.TweenType.RotateBy, new Dictionary());
485 | mappings[iTweenEvent.TweenType.RotateBy]["amount"] = typeof(Vector3);
486 | mappings[iTweenEvent.TweenType.RotateBy]["x"] = typeof(float);
487 | mappings[iTweenEvent.TweenType.RotateBy]["y"] = typeof(float);
488 | mappings[iTweenEvent.TweenType.RotateBy]["z"] = typeof(float);
489 | mappings[iTweenEvent.TweenType.RotateBy]["space"] = typeof(Space);
490 | mappings[iTweenEvent.TweenType.RotateBy]["time"] = typeof(float);
491 | mappings[iTweenEvent.TweenType.RotateBy]["speed"] = typeof(float);
492 | mappings[iTweenEvent.TweenType.RotateBy]["delay"] = typeof(float);
493 | mappings[iTweenEvent.TweenType.RotateBy]["easetype"] = typeof(iTween.EaseType);
494 | mappings[iTweenEvent.TweenType.RotateBy]["looptype"] = typeof(iTween.LoopType);
495 | mappings[iTweenEvent.TweenType.RotateBy]["onstart"] = typeof(string);
496 | mappings[iTweenEvent.TweenType.RotateBy]["onstarttarget"] = typeof(GameObject);
497 | mappings[iTweenEvent.TweenType.RotateBy]["onstartparams"] = typeof(string);
498 | mappings[iTweenEvent.TweenType.RotateBy]["onupdate"] = typeof(string);
499 | mappings[iTweenEvent.TweenType.RotateBy]["onupdatetarget"] = typeof(GameObject);
500 | mappings[iTweenEvent.TweenType.RotateBy]["onupdateparams"] = typeof(string);
501 | mappings[iTweenEvent.TweenType.RotateBy]["oncomplete"] = typeof(string);
502 | mappings[iTweenEvent.TweenType.RotateBy]["oncompletetarget"] = typeof(GameObject);
503 | mappings[iTweenEvent.TweenType.RotateBy]["oncompleteparams"] = typeof(string);
504 | mappings[iTweenEvent.TweenType.RotateBy]["ignoretimescale"] = typeof(bool);
505 |
506 | // ROTATE FROM
507 | mappings.Add(iTweenEvent.TweenType.RotateFrom, new Dictionary());
508 | mappings[iTweenEvent.TweenType.RotateFrom]["rotation"] = typeof(Vector3OrTransform);
509 | mappings[iTweenEvent.TweenType.RotateFrom]["x"] = typeof(float);
510 | mappings[iTweenEvent.TweenType.RotateFrom]["y"] = typeof(float);
511 | mappings[iTweenEvent.TweenType.RotateFrom]["z"] = typeof(float);
512 | mappings[iTweenEvent.TweenType.RotateFrom]["islocal"] = typeof(bool);
513 | mappings[iTweenEvent.TweenType.RotateFrom]["time"] = typeof(float);
514 | mappings[iTweenEvent.TweenType.RotateFrom]["speed"] = typeof(float);
515 | mappings[iTweenEvent.TweenType.RotateFrom]["delay"] = typeof(float);
516 | mappings[iTweenEvent.TweenType.RotateFrom]["easetype"] = typeof(iTween.EaseType);
517 | mappings[iTweenEvent.TweenType.RotateFrom]["looptype"] = typeof(iTween.LoopType);
518 | mappings[iTweenEvent.TweenType.RotateFrom]["onstart"] = typeof(string);
519 | mappings[iTweenEvent.TweenType.RotateFrom]["onstarttarget"] = typeof(GameObject);
520 | mappings[iTweenEvent.TweenType.RotateFrom]["onstartparams"] = typeof(string);
521 | mappings[iTweenEvent.TweenType.RotateFrom]["onupdate"] = typeof(string);
522 | mappings[iTweenEvent.TweenType.RotateFrom]["onupdatetarget"] = typeof(GameObject);
523 | mappings[iTweenEvent.TweenType.RotateFrom]["onupdateparams"] = typeof(string);
524 | mappings[iTweenEvent.TweenType.RotateFrom]["oncomplete"] = typeof(string);
525 | mappings[iTweenEvent.TweenType.RotateFrom]["oncompletetarget"] = typeof(GameObject);
526 | mappings[iTweenEvent.TweenType.RotateFrom]["oncompleteparams"] = typeof(string);
527 | mappings[iTweenEvent.TweenType.RotateFrom]["ignoretimescale"] = typeof(bool);
528 |
529 | // ROTATE TO
530 | mappings.Add(iTweenEvent.TweenType.RotateTo, new Dictionary());
531 | mappings[iTweenEvent.TweenType.RotateTo]["rotation"] = typeof(Vector3OrTransform);
532 | mappings[iTweenEvent.TweenType.RotateTo]["x"] = typeof(float);
533 | mappings[iTweenEvent.TweenType.RotateTo]["y"] = typeof(float);
534 | mappings[iTweenEvent.TweenType.RotateTo]["z"] = typeof(float);
535 | mappings[iTweenEvent.TweenType.RotateTo]["islocal"] = typeof(bool);
536 | mappings[iTweenEvent.TweenType.RotateTo]["time"] = typeof(float);
537 | mappings[iTweenEvent.TweenType.RotateTo]["speed"] = typeof(float);
538 | mappings[iTweenEvent.TweenType.RotateTo]["delay"] = typeof(float);
539 | mappings[iTweenEvent.TweenType.RotateTo]["easetype"] = typeof(iTween.EaseType);
540 | mappings[iTweenEvent.TweenType.RotateTo]["looptype"] = typeof(iTween.LoopType);
541 | mappings[iTweenEvent.TweenType.RotateTo]["onstart"] = typeof(string);
542 | mappings[iTweenEvent.TweenType.RotateTo]["onstarttarget"] = typeof(GameObject);
543 | mappings[iTweenEvent.TweenType.RotateTo]["onstartparams"] = typeof(string);
544 | mappings[iTweenEvent.TweenType.RotateTo]["onupdate"] = typeof(string);
545 | mappings[iTweenEvent.TweenType.RotateTo]["onupdatetarget"] = typeof(GameObject);
546 | mappings[iTweenEvent.TweenType.RotateTo]["onupdateparams"] = typeof(string);
547 | mappings[iTweenEvent.TweenType.RotateTo]["oncomplete"] = typeof(string);
548 | mappings[iTweenEvent.TweenType.RotateTo]["oncompletetarget"] = typeof(GameObject);
549 | mappings[iTweenEvent.TweenType.RotateTo]["oncompleteparams"] = typeof(string);
550 | mappings[iTweenEvent.TweenType.RotateTo]["ignoretimescale"] = typeof(bool);
551 |
552 | // ROTATE UPDATE
553 | mappings.Add(iTweenEvent.TweenType.RotateUpdate, new Dictionary());
554 | mappings[iTweenEvent.TweenType.RotateUpdate]["rotation"] = typeof(Vector3OrTransform);
555 | mappings[iTweenEvent.TweenType.RotateUpdate]["x"] = typeof(float);
556 | mappings[iTweenEvent.TweenType.RotateUpdate]["y"] = typeof(float);
557 | mappings[iTweenEvent.TweenType.RotateUpdate]["z"] = typeof(float);
558 | mappings[iTweenEvent.TweenType.RotateUpdate]["islocal"] = typeof(bool);
559 | mappings[iTweenEvent.TweenType.RotateUpdate]["time"] = typeof(float);
560 |
561 | // SCALE ADD
562 | mappings.Add(iTweenEvent.TweenType.ScaleAdd, new Dictionary());
563 | mappings[iTweenEvent.TweenType.ScaleAdd]["amount"] = typeof(Vector3);
564 | mappings[iTweenEvent.TweenType.ScaleAdd]["x"] = typeof(float);
565 | mappings[iTweenEvent.TweenType.ScaleAdd]["y"] = typeof(float);
566 | mappings[iTweenEvent.TweenType.ScaleAdd]["z"] = typeof(float);
567 | mappings[iTweenEvent.TweenType.ScaleAdd]["time"] = typeof(float);
568 | mappings[iTweenEvent.TweenType.ScaleAdd]["speed"] = typeof(float);
569 | mappings[iTweenEvent.TweenType.ScaleAdd]["delay"] = typeof(float);
570 | mappings[iTweenEvent.TweenType.ScaleAdd]["easetype"] = typeof(iTween.EaseType);
571 | mappings[iTweenEvent.TweenType.ScaleAdd]["looptype"] = typeof(iTween.LoopType);
572 | mappings[iTweenEvent.TweenType.ScaleAdd]["onstart"] = typeof(string);
573 | mappings[iTweenEvent.TweenType.ScaleAdd]["onstarttarget"] = typeof(GameObject);
574 | mappings[iTweenEvent.TweenType.ScaleAdd]["onstartparams"] = typeof(string);
575 | mappings[iTweenEvent.TweenType.ScaleAdd]["onupdate"] = typeof(string);
576 | mappings[iTweenEvent.TweenType.ScaleAdd]["onupdatetarget"] = typeof(GameObject);
577 | mappings[iTweenEvent.TweenType.ScaleAdd]["onupdateparams"] = typeof(string);
578 | mappings[iTweenEvent.TweenType.ScaleAdd]["oncomplete"] = typeof(string);
579 | mappings[iTweenEvent.TweenType.ScaleAdd]["oncompletetarget"] = typeof(GameObject);
580 | mappings[iTweenEvent.TweenType.ScaleAdd]["oncompleteparams"] = typeof(string);
581 | mappings[iTweenEvent.TweenType.ScaleAdd]["ignoretimescale"] = typeof(bool);
582 |
583 | // SCALE BY
584 | mappings.Add(iTweenEvent.TweenType.ScaleBy, new Dictionary());
585 | mappings[iTweenEvent.TweenType.ScaleBy]["amount"] = typeof(Vector3);
586 | mappings[iTweenEvent.TweenType.ScaleBy]["x"] = typeof(float);
587 | mappings[iTweenEvent.TweenType.ScaleBy]["y"] = typeof(float);
588 | mappings[iTweenEvent.TweenType.ScaleBy]["z"] = typeof(float);
589 | mappings[iTweenEvent.TweenType.ScaleBy]["time"] = typeof(float);
590 | mappings[iTweenEvent.TweenType.ScaleBy]["speed"] = typeof(float);
591 | mappings[iTweenEvent.TweenType.ScaleBy]["delay"] = typeof(float);
592 | mappings[iTweenEvent.TweenType.ScaleBy]["easetype"] = typeof(iTween.EaseType);
593 | mappings[iTweenEvent.TweenType.ScaleBy]["looptype"] = typeof(iTween.LoopType);
594 | mappings[iTweenEvent.TweenType.ScaleBy]["onstart"] = typeof(string);
595 | mappings[iTweenEvent.TweenType.ScaleBy]["onstarttarget"] = typeof(GameObject);
596 | mappings[iTweenEvent.TweenType.ScaleBy]["onstartparams"] = typeof(string);
597 | mappings[iTweenEvent.TweenType.ScaleBy]["onupdate"] = typeof(string);
598 | mappings[iTweenEvent.TweenType.ScaleBy]["onupdatetarget"] = typeof(GameObject);
599 | mappings[iTweenEvent.TweenType.ScaleBy]["onupdateparams"] = typeof(string);
600 | mappings[iTweenEvent.TweenType.ScaleBy]["oncomplete"] = typeof(string);
601 | mappings[iTweenEvent.TweenType.ScaleBy]["oncompletetarget"] = typeof(GameObject);
602 | mappings[iTweenEvent.TweenType.ScaleBy]["oncompleteparams"] = typeof(string);
603 | mappings[iTweenEvent.TweenType.ScaleBy]["ignoretimescale"] = typeof(bool);
604 |
605 | // SCALE FROM
606 | mappings.Add(iTweenEvent.TweenType.ScaleFrom, new Dictionary());
607 | mappings[iTweenEvent.TweenType.ScaleFrom]["scale"] = typeof(Vector3OrTransform);
608 | mappings[iTweenEvent.TweenType.ScaleFrom]["x"] = typeof(float);
609 | mappings[iTweenEvent.TweenType.ScaleFrom]["y"] = typeof(float);
610 | mappings[iTweenEvent.TweenType.ScaleFrom]["z"] = typeof(float);
611 | mappings[iTweenEvent.TweenType.ScaleFrom]["time"] = typeof(float);
612 | mappings[iTweenEvent.TweenType.ScaleFrom]["speed"] = typeof(float);
613 | mappings[iTweenEvent.TweenType.ScaleFrom]["delay"] = typeof(float);
614 | mappings[iTweenEvent.TweenType.ScaleFrom]["easetype"] = typeof(iTween.EaseType);
615 | mappings[iTweenEvent.TweenType.ScaleFrom]["looptype"] = typeof(iTween.LoopType);
616 | mappings[iTweenEvent.TweenType.ScaleFrom]["onstart"] = typeof(string);
617 | mappings[iTweenEvent.TweenType.ScaleFrom]["onstarttarget"] = typeof(GameObject);
618 | mappings[iTweenEvent.TweenType.ScaleFrom]["onstartparams"] = typeof(string);
619 | mappings[iTweenEvent.TweenType.ScaleFrom]["onupdate"] = typeof(string);
620 | mappings[iTweenEvent.TweenType.ScaleFrom]["onupdatetarget"] = typeof(GameObject);
621 | mappings[iTweenEvent.TweenType.ScaleFrom]["onupdateparams"] = typeof(string);
622 | mappings[iTweenEvent.TweenType.ScaleFrom]["oncomplete"] = typeof(string);
623 | mappings[iTweenEvent.TweenType.ScaleFrom]["oncompletetarget"] = typeof(GameObject);
624 | mappings[iTweenEvent.TweenType.ScaleFrom]["oncompleteparams"] = typeof(string);
625 | mappings[iTweenEvent.TweenType.ScaleFrom]["ignoretimescale"] = typeof(bool);
626 |
627 | // SCALE TO
628 | mappings.Add(iTweenEvent.TweenType.ScaleTo, new Dictionary());
629 | mappings[iTweenEvent.TweenType.ScaleTo]["scale"] = typeof(Vector3OrTransform);
630 | mappings[iTweenEvent.TweenType.ScaleTo]["x"] = typeof(float);
631 | mappings[iTweenEvent.TweenType.ScaleTo]["y"] = typeof(float);
632 | mappings[iTweenEvent.TweenType.ScaleTo]["z"] = typeof(float);
633 | mappings[iTweenEvent.TweenType.ScaleTo]["time"] = typeof(float);
634 | mappings[iTweenEvent.TweenType.ScaleTo]["speed"] = typeof(float);
635 | mappings[iTweenEvent.TweenType.ScaleTo]["delay"] = typeof(float);
636 | mappings[iTweenEvent.TweenType.ScaleTo]["easetype"] = typeof(iTween.EaseType);
637 | mappings[iTweenEvent.TweenType.ScaleTo]["looptype"] = typeof(iTween.LoopType);
638 | mappings[iTweenEvent.TweenType.ScaleTo]["onstart"] = typeof(string);
639 | mappings[iTweenEvent.TweenType.ScaleTo]["onstarttarget"] = typeof(GameObject);
640 | mappings[iTweenEvent.TweenType.ScaleTo]["onstartparams"] = typeof(string);
641 | mappings[iTweenEvent.TweenType.ScaleTo]["onupdate"] = typeof(string);
642 | mappings[iTweenEvent.TweenType.ScaleTo]["onupdatetarget"] = typeof(GameObject);
643 | mappings[iTweenEvent.TweenType.ScaleTo]["onupdateparams"] = typeof(string);
644 | mappings[iTweenEvent.TweenType.ScaleTo]["oncomplete"] = typeof(string);
645 | mappings[iTweenEvent.TweenType.ScaleTo]["oncompletetarget"] = typeof(GameObject);
646 | mappings[iTweenEvent.TweenType.ScaleTo]["oncompleteparams"] = typeof(string);
647 | mappings[iTweenEvent.TweenType.ScaleTo]["ignoretimescale"] = typeof(bool);
648 |
649 | // SCALE UPDATE
650 | mappings.Add(iTweenEvent.TweenType.ScaleUpdate, new Dictionary());
651 | mappings[iTweenEvent.TweenType.ScaleUpdate]["scale"] = typeof(Vector3OrTransform);
652 | mappings[iTweenEvent.TweenType.ScaleUpdate]["x"] = typeof(float);
653 | mappings[iTweenEvent.TweenType.ScaleUpdate]["y"] = typeof(float);
654 | mappings[iTweenEvent.TweenType.ScaleUpdate]["z"] = typeof(float);
655 | mappings[iTweenEvent.TweenType.ScaleUpdate]["time"] = typeof(float);
656 |
657 | // SHAKE POSITION
658 | mappings.Add(iTweenEvent.TweenType.ShakePosition, new Dictionary());
659 | mappings[iTweenEvent.TweenType.ShakePosition]["amount"] = typeof(Vector3);
660 | mappings[iTweenEvent.TweenType.ShakePosition]["x"] = typeof(float);
661 | mappings[iTweenEvent.TweenType.ShakePosition]["y"] = typeof(float);
662 | mappings[iTweenEvent.TweenType.ShakePosition]["z"] = typeof(float);
663 | mappings[iTweenEvent.TweenType.ShakePosition]["space"] = typeof(Space);
664 | mappings[iTweenEvent.TweenType.ShakePosition]["orienttopath"] = typeof(bool);
665 | mappings[iTweenEvent.TweenType.ShakePosition]["looktarget"] = typeof(Vector3OrTransform);
666 | mappings[iTweenEvent.TweenType.ShakePosition]["looktime"] = typeof(float);
667 | mappings[iTweenEvent.TweenType.ShakePosition]["axis"] = typeof(string);
668 | mappings[iTweenEvent.TweenType.ShakePosition]["time"] = typeof(float);
669 | mappings[iTweenEvent.TweenType.ShakePosition]["delay"] = typeof(float);
670 | mappings[iTweenEvent.TweenType.ShakePosition]["looptype"] = typeof(iTween.LoopType);
671 | mappings[iTweenEvent.TweenType.ShakePosition]["onstart"] = typeof(string);
672 | mappings[iTweenEvent.TweenType.ShakePosition]["onstarttarget"] = typeof(GameObject);
673 | mappings[iTweenEvent.TweenType.ShakePosition]["onstartparams"] = typeof(string);
674 | mappings[iTweenEvent.TweenType.ShakePosition]["onupdate"] = typeof(string);
675 | mappings[iTweenEvent.TweenType.ShakePosition]["onupdatetarget"] = typeof(GameObject);
676 | mappings[iTweenEvent.TweenType.ShakePosition]["onupdateparams"] = typeof(string);
677 | mappings[iTweenEvent.TweenType.ShakePosition]["oncomplete"] = typeof(string);
678 | mappings[iTweenEvent.TweenType.ShakePosition]["oncompletetarget"] = typeof(GameObject);
679 | mappings[iTweenEvent.TweenType.ShakePosition]["oncompleteparams"] = typeof(string);
680 | mappings[iTweenEvent.TweenType.ShakePosition]["ignoretimescale"] = typeof(bool);
681 |
682 | // SHAKE ROTATION
683 | mappings.Add(iTweenEvent.TweenType.ShakeRotation, new Dictionary());
684 | mappings[iTweenEvent.TweenType.ShakeRotation]["amount"] = typeof(Vector3);
685 | mappings[iTweenEvent.TweenType.ShakeRotation]["x"] = typeof(float);
686 | mappings[iTweenEvent.TweenType.ShakeRotation]["y"] = typeof(float);
687 | mappings[iTweenEvent.TweenType.ShakeRotation]["z"] = typeof(float);
688 | mappings[iTweenEvent.TweenType.ShakeRotation]["space"] = typeof(Space);
689 | mappings[iTweenEvent.TweenType.ShakeRotation]["time"] = typeof(float);
690 | mappings[iTweenEvent.TweenType.ShakeRotation]["delay"] = typeof(float);
691 | mappings[iTweenEvent.TweenType.ShakeRotation]["looptype"] = typeof(iTween.LoopType);
692 | mappings[iTweenEvent.TweenType.ShakeRotation]["onstart"] = typeof(string);
693 | mappings[iTweenEvent.TweenType.ShakeRotation]["onstarttarget"] = typeof(GameObject);
694 | mappings[iTweenEvent.TweenType.ShakeRotation]["onstartparams"] = typeof(string);
695 | mappings[iTweenEvent.TweenType.ShakeRotation]["onupdate"] = typeof(string);
696 | mappings[iTweenEvent.TweenType.ShakeRotation]["onupdatetarget"] = typeof(GameObject);
697 | mappings[iTweenEvent.TweenType.ShakeRotation]["onupdateparams"] = typeof(string);
698 | mappings[iTweenEvent.TweenType.ShakeRotation]["oncomplete"] = typeof(string);
699 | mappings[iTweenEvent.TweenType.ShakeRotation]["oncompletetarget"] = typeof(GameObject);
700 | mappings[iTweenEvent.TweenType.ShakeRotation]["oncompleteparams"] = typeof(string);
701 | mappings[iTweenEvent.TweenType.ShakeRotation]["ignoretimescale"] = typeof(bool);
702 |
703 | // SHAKE SCALE
704 | mappings.Add(iTweenEvent.TweenType.ShakeScale, new Dictionary());
705 | mappings[iTweenEvent.TweenType.ShakeScale]["amount"] = typeof(Vector3);
706 | mappings[iTweenEvent.TweenType.ShakeScale]["x"] = typeof(float);
707 | mappings[iTweenEvent.TweenType.ShakeScale]["y"] = typeof(float);
708 | mappings[iTweenEvent.TweenType.ShakeScale]["z"] = typeof(float);
709 | mappings[iTweenEvent.TweenType.ShakeScale]["time"] = typeof(float);
710 | mappings[iTweenEvent.TweenType.ShakeScale]["delay"] = typeof(float);
711 | mappings[iTweenEvent.TweenType.ShakeScale]["looptype"] = typeof(iTween.LoopType);
712 | mappings[iTweenEvent.TweenType.ShakeScale]["onstart"] = typeof(string);
713 | mappings[iTweenEvent.TweenType.ShakeScale]["onstarttarget"] = typeof(GameObject);
714 | mappings[iTweenEvent.TweenType.ShakeScale]["onstartparams"] = typeof(string);
715 | mappings[iTweenEvent.TweenType.ShakeScale]["onupdate"] = typeof(string);
716 | mappings[iTweenEvent.TweenType.ShakeScale]["onupdatetarget"] = typeof(GameObject);
717 | mappings[iTweenEvent.TweenType.ShakeScale]["onupdateparams"] = typeof(string);
718 | mappings[iTweenEvent.TweenType.ShakeScale]["oncomplete"] = typeof(string);
719 | mappings[iTweenEvent.TweenType.ShakeScale]["oncompletetarget"] = typeof(GameObject);
720 | mappings[iTweenEvent.TweenType.ShakeScale]["oncompleteparams"] = typeof(string);
721 | mappings[iTweenEvent.TweenType.ShakeScale]["ignoretimescale"] = typeof(bool);
722 |
723 | // STAB
724 | mappings.Add(iTweenEvent.TweenType.Stab, new Dictionary());
725 | mappings[iTweenEvent.TweenType.Stab]["audioclip"] = typeof(AudioClip);
726 | mappings[iTweenEvent.TweenType.Stab]["audiosource"] = typeof(AudioSource);
727 | mappings[iTweenEvent.TweenType.Stab]["volume"] = typeof(float);
728 | mappings[iTweenEvent.TweenType.Stab]["pitch"] = typeof(float);
729 | mappings[iTweenEvent.TweenType.Stab]["delay"] = typeof(float);
730 | mappings[iTweenEvent.TweenType.Stab]["onstart"] = typeof(string);
731 | mappings[iTweenEvent.TweenType.Stab]["onstarttarget"] = typeof(GameObject);
732 | mappings[iTweenEvent.TweenType.Stab]["onstartparams"] = typeof(string);
733 | mappings[iTweenEvent.TweenType.Stab]["onupdate"] = typeof(string);
734 | mappings[iTweenEvent.TweenType.Stab]["onupdatetarget"] = typeof(GameObject);
735 | mappings[iTweenEvent.TweenType.Stab]["onupdateparams"] = typeof(string);
736 | mappings[iTweenEvent.TweenType.Stab]["oncomplete"] = typeof(string);
737 | mappings[iTweenEvent.TweenType.Stab]["oncompletetarget"] = typeof(GameObject);
738 | mappings[iTweenEvent.TweenType.Stab]["oncompleteparams"] = typeof(string);
739 |
740 |
741 | }
742 | }
--------------------------------------------------------------------------------