Browse Source

first commit

gsgundam 8 years ago
commit
499a8fbd99
100 changed files with 9511 additions and 0 deletions
  1. BIN
      .vs/bubble_client/v14/.suo
  2. 9 0
      Assets/Plugins.meta
  3. 5 0
      Assets/Plugins/Android.meta
  4. 19 0
      Assets/Plugins/Android/AndroidManifest.xml
  5. 4 0
      Assets/Plugins/Android/AndroidManifest.xml.meta
  6. BIN
      Assets/Plugins/Android/AndroidStore.jar
  7. 4 0
      Assets/Plugins/Android/AndroidStore.jar.meta
  8. BIN
      Assets/Plugins/Android/AndroidStoreGooglePlay.jar
  9. 4 0
      Assets/Plugins/Android/AndroidStoreGooglePlay.jar.meta
  10. BIN
      Assets/Plugins/Android/SoomlaAndroidCore.jar
  11. 4 0
      Assets/Plugins/Android/SoomlaAndroidCore.jar.meta
  12. BIN
      Assets/Plugins/Android/UnityAndroidStore.jar
  13. 4 0
      Assets/Plugins/Android/UnityAndroidStore.jar.meta
  14. BIN
      Assets/Plugins/Android/UnitySoomlaAndroidCore.jar
  15. 4 0
      Assets/Plugins/Android/UnitySoomlaAndroidCore.jar.meta
  16. BIN
      Assets/Plugins/Android/square-otto-1.3.2.jar
  17. 4 0
      Assets/Plugins/Android/square-otto-1.3.2.jar.meta
  18. 5 0
      Assets/Plugins/Editor.meta
  19. 5 0
      Assets/Plugins/Editor/SmartLevelsMap.meta
  20. 54 0
      Assets/Plugins/Editor/SmartLevelsMap/LevelsEditorBase.cs
  21. 8 0
      Assets/Plugins/Editor/SmartLevelsMap/LevelsEditorBase.cs.meta
  22. 365 0
      Assets/Plugins/Editor/SmartLevelsMap/LevelsMapEditor.cs
  23. 8 0
      Assets/Plugins/Editor/SmartLevelsMap/LevelsMapEditor.cs.meta
  24. 14 0
      Assets/Plugins/Editor/SmartLevelsMap/MapCameraEditor.cs
  25. 8 0
      Assets/Plugins/Editor/SmartLevelsMap/MapCameraEditor.cs.meta
  26. 118 0
      Assets/Plugins/Editor/SmartLevelsMap/MapLevelEditor.cs
  27. 8 0
      Assets/Plugins/Editor/SmartLevelsMap/MapLevelEditor.cs.meta
  28. 5 0
      Assets/Plugins/OpenIAB.meta
  29. 5 0
      Assets/Plugins/OpenIAB/Android.meta
  30. 5 0
      Assets/Plugins/OpenIAB/iOS.meta
  31. BIN
      Assets/Plugins/OpenIAB_W8Plugin.dll.mdb
  32. 4 0
      Assets/Plugins/OpenIAB_W8Plugin.dll.mdb.meta
  33. BIN
      Assets/Plugins/OpenIAB_W8Plugin.pdb
  34. 4 0
      Assets/Plugins/OpenIAB_W8Plugin.pdb.meta
  35. BIN
      Assets/Plugins/OpenIAB_manual.pdf
  36. 4 0
      Assets/Plugins/OpenIAB_manual.pdf.meta
  37. 5 0
      Assets/Plugins/Pixelplacement.meta
  38. 5 0
      Assets/Plugins/Pixelplacement/iTween.meta
  39. 5 0
      Assets/Plugins/Pixelplacement/iTween/ReadMe!.meta
  40. 3 0
      Assets/Plugins/Pixelplacement/iTween/ReadMe!/ReadMe!.txt
  41. 4 0
      Assets/Plugins/Pixelplacement/iTween/ReadMe!/ReadMe!.txt.meta
  42. 5 0
      Assets/Plugins/Pixelplacement/iTween/Sample.meta
  43. 10 0
      Assets/Plugins/Pixelplacement/iTween/Sample/MoveSample.cs
  44. 8 0
      Assets/Plugins/Pixelplacement/iTween/Sample/MoveSample.cs.meta
  45. 10 0
      Assets/Plugins/Pixelplacement/iTween/Sample/RotateSample.cs
  46. 8 0
      Assets/Plugins/Pixelplacement/iTween/Sample/RotateSample.cs.meta
  47. BIN
      Assets/Plugins/Pixelplacement/iTween/Sample/Sample.unity
  48. 4 0
      Assets/Plugins/Pixelplacement/iTween/Sample/Sample.unity.meta
  49. 16 0
      Assets/Plugins/Pixelplacement/iTween/Sample/SampleInfo.cs
  50. 8 0
      Assets/Plugins/Pixelplacement/iTween/Sample/SampleInfo.cs.meta
  51. 7503 0
      Assets/Plugins/Pixelplacement/iTween/iTween.cs
  52. 8 0
      Assets/Plugins/Pixelplacement/iTween/iTween.cs.meta
  53. 5 0
      Assets/Plugins/SmartLevelsMap.meta
  54. 5 0
      Assets/Plugins/SmartLevelsMap/Demo.meta
  55. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Level01.unity
  56. 6 0
      Assets/Plugins/SmartLevelsMap/Demo/Level01.unity.meta
  57. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Level02.unity
  58. 6 0
      Assets/Plugins/SmartLevelsMap/Demo/Level02.unity.meta
  59. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Level03.unity
  60. 6 0
      Assets/Plugins/SmartLevelsMap/Demo/Level03.unity.meta
  61. 5 0
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs.meta
  62. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/ApiTestGUI.prefab
  63. 4 0
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/ApiTestGUI.prefab.meta
  64. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Character.prefab
  65. 6 0
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Character.prefab.meta
  66. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Level.prefab
  67. 8 0
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Level.prefab.meta
  68. BIN
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/LevelsMap.prefab
  69. 8 0
      Assets/Plugins/SmartLevelsMap/Demo/Prefabs/LevelsMap.prefab.meta
  70. BIN
      Assets/Plugins/SmartLevelsMap/Demo/demo.unity
  71. 6 0
      Assets/Plugins/SmartLevelsMap/Demo/demo.unity.meta
  72. 5 0
      Assets/Plugins/SmartLevelsMap/Scripts.meta
  73. 187 0
      Assets/Plugins/SmartLevelsMap/Scripts/ApiTest.cs
  74. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/ApiTest.cs.meta
  75. 18 0
      Assets/Plugins/SmartLevelsMap/Scripts/DemoButton.cs
  76. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/DemoButton.cs.meta
  77. 9 0
      Assets/Plugins/SmartLevelsMap/Scripts/IMapProgressManager.cs
  78. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/IMapProgressManager.cs.meta
  79. 14 0
      Assets/Plugins/SmartLevelsMap/Scripts/LevelReachedEventArgs.cs
  80. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/LevelReachedEventArgs.cs.meta
  81. 256 0
      Assets/Plugins/SmartLevelsMap/Scripts/LevelsMap.cs
  82. 14 0
      Assets/Plugins/SmartLevelsMap/Scripts/LevelsMap.cs.meta
  83. 90 0
      Assets/Plugins/SmartLevelsMap/Scripts/MapCamera.cs
  84. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/MapCamera.cs.meta
  85. 111 0
      Assets/Plugins/SmartLevelsMap/Scripts/MapLevel.cs
  86. 11 0
      Assets/Plugins/SmartLevelsMap/Scripts/MapLevel.cs.meta
  87. 91 0
      Assets/Plugins/SmartLevelsMap/Scripts/Path.cs
  88. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/Path.cs.meta
  89. 28 0
      Assets/Plugins/SmartLevelsMap/Scripts/PlayerPrefsMapProgressManager.cs
  90. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/PlayerPrefsMapProgressManager.cs.meta
  91. 39 0
      Assets/Plugins/SmartLevelsMap/Scripts/SplineCurve.cs
  92. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/SplineCurve.cs.meta
  93. 9 0
      Assets/Plugins/SmartLevelsMap/Scripts/StarsType.cs
  94. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/StarsType.cs.meta
  95. 43 0
      Assets/Plugins/SmartLevelsMap/Scripts/TestLevelGUI.cs
  96. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/TestLevelGUI.cs.meta
  97. 9 0
      Assets/Plugins/SmartLevelsMap/Scripts/TranslationType.cs
  98. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/TranslationType.cs.meta
  99. 133 0
      Assets/Plugins/SmartLevelsMap/Scripts/WaypointsMover.cs
  100. 8 0
      Assets/Plugins/SmartLevelsMap/Scripts/WaypointsMover.cs.meta

BIN
.vs/bubble_client/v14/.suo


+ 9 - 0
Assets/Plugins.meta

@@ -0,0 +1,9 @@
+fileFormatVersion: 2
+guid: 3f463f2a197bdf64cba18a9636327d25
+folderAsset: yes
+timeCreated: 1440159130
+licenseType: Free
+DefaultImporter:
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 5 - 0
Assets/Plugins/Android.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 9a7568cf3aae5e240960d899c86def87
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 19 - 0
Assets/Plugins/Android/AndroidManifest.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">
+  <uses-permission android:name="com.android.vending.BILLING" />
+  <uses-permission android:name="android.permission.INTERNET" />
+  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
+  <application android:theme="@android:style/Theme.NoTitleBar" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true" android:name="com.soomla.SoomlaApp">
+    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name">
+      <intent-filter>
+        <action android:name="android.intent.action.MAIN" />
+        <category android:name="android.intent.category.LAUNCHER" />
+        <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+      </intent-filter>
+      <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
+      <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
+    </activity>
+    <activity android:name="com.soomla.store.billing.google.GooglePlayIabService$IabActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
+    <meta-data android:name="billing.service" android:value="google.GooglePlayIabService" />
+  </application>
+</manifest>

+ 4 - 0
Assets/Plugins/Android/AndroidManifest.xml.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 4a9928d14f233db4fae6df86765ba06a
+TextScriptImporter:
+  userData: 

BIN
Assets/Plugins/Android/AndroidStore.jar


+ 4 - 0
Assets/Plugins/Android/AndroidStore.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 8826106d324ba4f7095cc54592ae377e
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/AndroidStoreGooglePlay.jar


+ 4 - 0
Assets/Plugins/Android/AndroidStoreGooglePlay.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: abaf0b1a34f8d244c8e1e468205ccdcf
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/SoomlaAndroidCore.jar


+ 4 - 0
Assets/Plugins/Android/SoomlaAndroidCore.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 93cbcedfbcc7844aa98b9f92d957d04e
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/UnityAndroidStore.jar


+ 4 - 0
Assets/Plugins/Android/UnityAndroidStore.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 155a41a1680c3476caa6e8fcd8da335e
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/UnitySoomlaAndroidCore.jar


+ 4 - 0
Assets/Plugins/Android/UnitySoomlaAndroidCore.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 430fcf5af633c48c8a055a2067c44b4f
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/Android/square-otto-1.3.2.jar


+ 4 - 0
Assets/Plugins/Android/square-otto-1.3.2.jar.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: ff33d2cddddea4a0d876f22af4d952f9
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Editor.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: c0d357e3fddf0de478b9600375f5cea5
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Editor/SmartLevelsMap.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 648ca039f5b7b79439ea40f7611d8e78
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 54 - 0
Assets/Plugins/Editor/SmartLevelsMap/LevelsEditorBase.cs

@@ -0,0 +1,54 @@
+using System.Collections.Generic;
+using System.Linq;
+using Assets.Plugins.SmartLevelsMap.Scripts;
+using UnityEditor;
+using UnityEngine;
+
+namespace Assets.Plugins.Editor.SmartLevelsMap
+{
+    public abstract class LevelsEditorBase : UnityEditor.Editor
+    {
+        protected List<MapLevel> GetMapLevels()
+        {
+            return FindObjectsOfType<MapLevel>().OrderBy(ml => ml.Number).ToList();
+        }
+
+        protected MapLevel CreateMapLevel(Vector3 position, int number, MapLevel mapLevelPrefab)
+        {
+            MapLevel mapLevel = PrefabUtility.InstantiatePrefab(mapLevelPrefab) as MapLevel;
+            mapLevel.transform.position = position;
+            return mapLevel;
+        }
+
+        protected void UpdateLevelsNumber(List<MapLevel> mapLevels)
+        {
+            for (int i = 0; i < mapLevels.Count; i++)
+            {
+                mapLevels[i].Number = i + 1;
+                mapLevels[i].name = string.Format("Level{0:00}", i + 1);
+            }
+        }
+
+        protected void UpdatePathWaypoints(List<MapLevel> mapLevels)
+        {
+            Path path = FindObjectOfType<Path>();
+            path.Waypoints.Clear();
+            foreach (MapLevel mapLevel in mapLevels)
+                path.Waypoints.Add(mapLevel.PathPivot);
+        }
+
+        protected void SetAllMapLevelsAsDirty()
+        {
+            GetMapLevels().ForEach(EditorUtility.SetDirty);
+        }
+
+        protected void SetStarsEnabled(LevelsMap levelsMap, bool isEnabled)
+        {
+            levelsMap.SetStarsEnabled(isEnabled);
+            if(isEnabled)
+                levelsMap.SetStarsType(levelsMap.StarsType);
+            EditorUtility.SetDirty(levelsMap);
+            SetAllMapLevelsAsDirty();
+        }
+    }
+}

+ 8 - 0
Assets/Plugins/Editor/SmartLevelsMap/LevelsEditorBase.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: da75ca053b00916439433381de93aed5
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 365 - 0
Assets/Plugins/Editor/SmartLevelsMap/LevelsMapEditor.cs

@@ -0,0 +1,365 @@
+using System.Collections.Generic;
+using Assets.Plugins.SmartLevelsMap.Scripts;
+using UnityEditor;
+using UnityEngine;
+
+namespace Assets.Plugins.Editor.SmartLevelsMap
+{
+    [CustomEditor(typeof(LevelsMap))]
+    public class LevelsMapEditor : LevelsEditorBase
+    {
+        private LevelsMap _levelsMap;
+
+        private float _width;
+        private float _height;
+
+        public void OnEnable()
+        {
+            _levelsMap = target as LevelsMap;
+        }
+
+        public override void OnInspectorGUI()
+        {
+            GUILayout.BeginVertical();
+
+            if (_levelsMap.IsGenerated)
+            {
+                DrawLevelsSettings();
+                DrawStarsSettings();
+				DrawMapCameraSettings();
+
+                DrawLevelClickSettings();
+
+                if (GUILayout.Button("Clear all", GUILayout.MinWidth(120)) &&
+                    EditorUtility.DisplayDialog("Delete all?",
+                        "Are you sure that you want to delete all levels map settings?", "Delete", "Cancel"))
+                {
+                    Clear();
+                }
+            }
+            else
+            {
+                DrawGenerateDraft();                
+            }
+
+            GUILayout.Space(16);
+            GUILayout.EndVertical();
+
+            EditorUtility.SetDirty(_levelsMap);
+        }
+
+        private void DrawLevelsSettings()
+        {
+			GUILayout.BeginVertical("Box");
+			EditorGUILayout.LabelField("General:");
+
+			_levelsMap.WaypointsMover.Speed = EditorGUILayout.FloatField("Character speed", _levelsMap.WaypointsMover.Speed);
+
+            _levelsMap.TranslationType = (TranslationType) EditorGUILayout.EnumPopup("Translation type", _levelsMap.TranslationType);
+
+            Path path = _levelsMap.WaypointsMover.Path;
+            path.IsCurved = EditorGUILayout.Toggle("Curved", path.IsCurved);
+            path.GizmosColor = EditorGUILayout.ColorField("Gizmos Path Color", path.GizmosColor);
+            path.GizmosRadius = EditorGUILayout.FloatField("Gizmos Path Pivot Radius", path.GizmosRadius);
+
+			GUILayout.EndVertical();
+
+            EditorUtility.SetDirty(path);
+        }
+
+        private void Clear()
+        {
+            while (_levelsMap.transform.childCount > 0)
+            {
+                DestroyImmediate(_levelsMap.transform.GetChild(0).gameObject);
+            }
+            _levelsMap.IsGenerated = false;
+			DisableScrolling();
+        }
+
+        #region Generation
+
+        private void DrawGenerateDraft()
+        {
+			GUILayout.BeginVertical("Box");
+            _levelsMap.Count = EditorGUILayout.IntField("Count", _levelsMap.Count);
+            _levelsMap.MapLevelPrefab = EditorGUILayout.ObjectField("Level prefab", _levelsMap.MapLevelPrefab, typeof(MapLevel), false) as MapLevel;
+            _levelsMap.CharacterPrefab = EditorGUILayout.ObjectField("Character prefab", _levelsMap.CharacterPrefab, typeof(Transform), false) as Transform;
+			GUILayout.EndVertical();
+
+            if (GUILayout.Button("Generate draft", GUILayout.MinWidth(120)))
+            {
+                Generate();
+                _levelsMap.IsGenerated = true;
+                SetStarsEnabled(_levelsMap, false);
+            }
+        }
+
+        private void Generate()
+        {
+            InitBounds();
+            List<MapLevel> levels = GenerateLevels();
+            Path path = GeneratePath(levels);
+            _levelsMap.WaypointsMover = GenerateCharacter(path);
+            _levelsMap.WaypointsMover.transform.position = levels[0].transform.position;
+        }
+
+        private void InitBounds()
+        {
+            _height = Camera.main.orthographicSize*2*0.9f;
+            _width = _height*1.33333f*0.9f;
+        }
+
+        private List<MapLevel> GenerateLevels()
+        {
+            GameObject goLevels = new GameObject("Levels");
+            goLevels.transform.parent = _levelsMap.transform;
+            float[] points = DevideLineToPoints(_levelsMap.Count);
+            List<MapLevel> levels = new List<MapLevel>();
+            for (int i = 0; i < _levelsMap.Count; i++)
+            {
+                MapLevel mapLevel = CreateMapLevel(points[i], i + 1);
+                mapLevel.transform.parent = goLevels.transform;
+                levels.Add(mapLevel);
+            }
+            UpdateLevelsNumber(levels);
+            return levels;
+        }
+
+        private MapLevel CreateMapLevel(float point, int number)
+        {
+            Vector3 position;
+            if (point < 1f/3f)
+                position = GetPosition(point * 3f, _width, 0, _height / 3f, 0);
+            else if (point < 2f/3f)
+                position = GetPosition((point - 1f / 3f) * 3f, -_width, _width, _height / 3f, _height / 3f);
+            else
+                position = GetPosition((point - 2f / 3f) * 3f, _width, 0, _height / 3f, _height * 2f / 3f);
+            return CreateMapLevel(position, number, _levelsMap.MapLevelPrefab);
+        }
+
+        private Path GeneratePath(List<MapLevel> levels)
+        {
+            Path path = new GameObject("Path").AddComponent<Path>();
+            path.IsCurved = false;
+            path.GizmosRadius = Camera.main.orthographicSize/40f;
+            path.transform.parent = _levelsMap.transform;
+            UpdatePathWaypoints(levels);
+            return path;
+        }
+
+        private Vector3 GetPosition(float p, float width, float xOffset, float height, float yOffset)
+        {
+            return new Vector3(
+                xOffset + p * width - _width / 2f,
+                yOffset + p * height - _height / 2f,
+                0f);
+        }
+
+        /// <summary>
+        /// Devide [0,1] line to array of points.
+        /// If count = 1, ret {0}
+        /// If count = 2, ret {0, 1}
+        /// If count = 3, ret {0, 0.5, 1}
+        /// If count = 4, ret {0, 0.25, 0.25, 1}
+        /// </summary>
+        private float[] DevideLineToPoints(int pointsCount)
+        {
+            if (pointsCount <= 0)
+                return new float[0];
+
+            float[] points = new float[pointsCount];
+            for (int i = 0; i < pointsCount; i++)
+                points[i] = i * 1f / (pointsCount - 1);
+
+            return points;
+        }
+
+        private WaypointsMover GenerateCharacter(Path path)
+        {
+            Transform character = PrefabUtility.InstantiatePrefab(_levelsMap.CharacterPrefab) as Transform;
+            character.transform.parent = _levelsMap.transform;
+            WaypointsMover waypointsMover = character.gameObject.AddComponent<WaypointsMover>();
+            waypointsMover.Path = path;
+            waypointsMover.Speed = Camera.main.orthographicSize;
+            return waypointsMover;
+        }
+
+        #endregion
+
+		#region Stars
+
+        private void DrawStarsSettings()
+        {
+            if (_levelsMap.StarsEnabled)
+            {
+                if (GUILayout.Button("Disable stars"))
+                {
+                    SetStarsEnabled(_levelsMap, false);
+                }
+                else
+                {
+                    DrawEnableState();
+                }
+            }
+            else
+            {
+                if (GUILayout.Button("Enable stars"))
+                {
+                    SetStarsEnabled(_levelsMap, true);
+                }
+            }
+        }
+
+		private void DrawEnableState()
+		{
+			GUILayout.BeginVertical("Box");
+			GUILayout.Label("Stars enabled:");
+		    StarsType starsType = (StarsType) EditorGUILayout.EnumPopup("Stars type", _levelsMap.StarsType);
+		    if (starsType != _levelsMap.StarsType)
+		        _levelsMap.SetStarsType(starsType);
+ 			GUILayout.EndVertical();
+		}
+
+		#endregion
+
+		#region Map camera
+
+		private void DrawMapCameraSettings()
+		{
+			if(_levelsMap.ScrollingEnabled)
+			{
+				if(GUILayout.Button("Disable map scrolling"))
+					DisableScrolling();
+				else
+					DrawMapCameraBounds();
+			}
+			else
+			{
+				if(GUILayout.Button("Enable map scrolling"))
+					EnableScrolling(Camera.main);
+			}
+		}
+
+		private void EnableScrolling(Camera camera)
+		{
+			_levelsMap.ScrollingEnabled = true;
+			_levelsMap.MapCamera = camera.gameObject.AddComponent<MapCamera>();
+			_levelsMap.MapCamera.Camera = camera;
+			_levelsMap.MapCamera.Bounds.size = new Vector2(camera.orthographicSize*3f, camera.orthographicSize*3f);
+			EditorUtility.SetDirty(_levelsMap);
+		}
+
+		private void DisableScrolling()
+		{
+			_levelsMap.ScrollingEnabled = false;
+			DestroyImmediate(_levelsMap.MapCamera);
+			EditorUtility.SetDirty(_levelsMap);
+		}
+
+		private void DrawMapCameraBounds()
+		{
+			MapCamera mapCamera = _levelsMap.MapCamera;
+
+			GUILayout.BeginVertical("Box");
+
+			EditorGUILayout.LabelField("Map bounds:");
+
+			mapCamera.Bounds.center = new Vector3(
+				EditorGUILayout.FloatField("Center X", mapCamera.Bounds.center.x),
+				mapCamera.Bounds.center.y,
+				mapCamera.Bounds.center.z);
+			mapCamera.Bounds.center = new Vector3(
+				mapCamera.Bounds.center.x,
+				EditorGUILayout.FloatField("Center Y", mapCamera.Bounds.center.y),
+				mapCamera.Bounds.center.z);
+			mapCamera.Bounds.size = new Vector3(
+				EditorGUILayout.FloatField("Size X", mapCamera.Bounds.size.x),
+				mapCamera.Bounds.size.y,
+				mapCamera.Bounds.size.z);
+			mapCamera.Bounds.size = new Vector3(
+				mapCamera.Bounds.size.x,
+				EditorGUILayout.FloatField("Size Y", mapCamera.Bounds.size.y),
+				mapCamera.Bounds.size.z);
+
+			GUILayout.EndVertical();
+
+			EditorUtility.SetDirty(mapCamera);
+
+			Camera camera = EditorGUILayout.ObjectField("Map Camera", mapCamera.Camera, typeof(Camera), true) as Camera;
+			if(camera != mapCamera.Camera)
+			{
+				if(camera == null)
+				{
+					DisableScrolling();
+				}
+				else
+				{
+					Bounds bounds = mapCamera.Bounds;
+					DisableScrolling();
+					EnableScrolling(camera);
+					mapCamera = _levelsMap.MapCamera;
+					mapCamera.Bounds = bounds;
+					EditorUtility.SetDirty(mapCamera);
+				}
+			}
+		}
+
+		#endregion
+
+        #region Level selection confirmation
+
+        private void DrawLevelClickSettings()
+        {
+            if (_levelsMap.IsClickEnabled)
+            {
+                if (GUILayout.Button("Disable levels click/tap"))
+                {
+                    _levelsMap.IsClickEnabled = false;
+                    EditorUtility.SetDirty(_levelsMap);
+                }
+                DrawConfirmationSettings();
+            }
+            else
+            {
+                if (GUILayout.Button("Enable levels click/tap"))
+                {
+                    _levelsMap.IsClickEnabled = true;
+                    EditorUtility.SetDirty(_levelsMap);
+                }
+            }
+        }
+
+        private void DrawConfirmationSettings()
+        {
+            GUILayout.BeginVertical("Box");
+            string helpString = "Level click/tap enabled.\n";
+
+            if (_levelsMap.IsConfirmationEnabled)
+            {
+                helpString +=
+                    "Confirmation enabled: Click/tap level on map and catch 'LevelsMap.LevelSelected' event. After confirmation call 'LevelsMap.GoToLevel' method.";
+                GUILayout.Box(helpString);
+                if (GUILayout.Button("Disable confirmation"))
+                {
+                    _levelsMap.IsConfirmationEnabled = false;
+                    EditorUtility.SetDirty(_levelsMap);
+                }
+            }
+            else
+            {
+                helpString += "Confirmation disabled: Click/tap level on map for character moving to level.";
+                GUILayout.Box(helpString);
+                if (GUILayout.Button("Enable confirmation"))
+                {
+                    _levelsMap.IsConfirmationEnabled = true;
+                    EditorUtility.SetDirty(_levelsMap);
+                }
+            }
+
+            GUILayout.EndVertical();
+        }
+
+        #endregion
+    }
+}

+ 8 - 0
Assets/Plugins/Editor/SmartLevelsMap/LevelsMapEditor.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 7e8cfa2406fec8045a3d55b8c9a0eb0b
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 14 - 0
Assets/Plugins/Editor/SmartLevelsMap/MapCameraEditor.cs

@@ -0,0 +1,14 @@
+using Assets.Plugins.SmartLevelsMap.Scripts;
+using UnityEditor;
+using UnityEngine;
+
+namespace Assets.Plugins.Editor.SmartLevelsMap
+{
+	[CustomEditor(typeof(MapCamera))]
+    public class MapCameraEditor : UnityEditor.Editor
+    {
+		public override void OnInspectorGUI()
+		{
+		}
+    }
+} 

+ 8 - 0
Assets/Plugins/Editor/SmartLevelsMap/MapCameraEditor.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: afa9c41d6a466e941996263858980499
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 118 - 0
Assets/Plugins/Editor/SmartLevelsMap/MapLevelEditor.cs

@@ -0,0 +1,118 @@
+using System.Collections.Generic;
+using System.Linq;
+using Assets.Plugins.SmartLevelsMap.Scripts;
+using UnityEditor;
+using UnityEngine;
+
+namespace Assets.Plugins.Editor.SmartLevelsMap
+{
+    [CustomEditor(typeof(MapLevel))]
+    public class MapLevelEditor : LevelsEditorBase
+    {
+        private MapLevel _mapLevel;
+
+        private static GameObject _pendingDeletedGameObject;
+
+        public void OnEnable()
+        {
+            _mapLevel = target as MapLevel;
+            DeletePendingGameObject();
+        }
+
+        public override void OnInspectorGUI()
+        {
+            GUILayout.BeginVertical("Box");
+            GUILayout.Space(5);
+
+            if (GUILayout.Button("Insert before"))
+            {
+                List<MapLevel> mapLevels = GetMapLevels();
+                int ind = mapLevels.IndexOf(_mapLevel);
+                InsertMapLevel(ind, mapLevels);
+            }
+
+            if (GUILayout.Button("Insert after"))
+            {
+                List<MapLevel> mapLevels = GetMapLevels();
+                int ind = mapLevels.IndexOf(_mapLevel);
+                InsertMapLevel(ind + 1, mapLevels);
+            }
+
+            if (GUILayout.Button("Delete"))
+            {
+                Delete();
+            }
+
+            UpdateSceneName();
+
+            GUILayout.Space(5);
+            GUILayout.EndVertical();
+
+            base.OnInspectorGUI();
+        }
+
+        private void UpdateSceneName()
+        {
+            string oldSceneName = _mapLevel.SceneName;
+            string newSceneName = _mapLevel.LevelScene == null ? null : _mapLevel.LevelScene.name;
+            if (oldSceneName != newSceneName)
+            {
+                _mapLevel.SceneName = newSceneName;
+                EditorUtility.SetDirty(_mapLevel);
+            }
+        }
+ 
+        private void InsertMapLevel(int ind, List<MapLevel> mapLevels)
+        {
+            Vector2 position = GetInterpolatedPosition(ind, mapLevels);
+            LevelsMap levelsMap = FindObjectOfType<LevelsMap>();
+            MapLevel mapLevel = CreateMapLevel(position, ind, levelsMap.MapLevelPrefab);
+            mapLevel.transform.parent = _mapLevel.transform.parent;
+            mapLevel.transform.SetSiblingIndex(ind);
+            mapLevels.Insert(ind, mapLevel);
+            UpdateLevelsNumber(mapLevels);
+            UpdatePathWaypoints(mapLevels);
+            SetStarsEnabled(levelsMap, levelsMap.StarsEnabled);
+            Selection.activeGameObject = mapLevel.gameObject;
+        }
+
+        private Vector2 GetInterpolatedPosition(int ind, List<MapLevel> mapLevels)
+        {
+            Vector3 startPosition = mapLevels[Mathf.Max(0, ind - 1)].transform.position;
+            Vector3 finishPosition = mapLevels[Mathf.Min(ind, mapLevels.Count - 1)].transform.position;
+
+            if (ind == 0 && mapLevels.Count > 1)
+                finishPosition = startPosition + (startPosition - mapLevels[1].transform.position);
+            
+            if (ind == mapLevels.Count && mapLevels.Count > 1)
+                finishPosition = startPosition + (startPosition - mapLevels[ind - 2].transform.position);
+
+            return (startPosition + finishPosition)/2;
+        }
+
+        private void Delete()
+        {
+            List<MapLevel> mapLevels = GetMapLevels();
+            int ind = mapLevels.IndexOf(_mapLevel);
+            mapLevels.Remove(_mapLevel);
+            UpdateLevelsNumber(mapLevels);
+            UpdatePathWaypoints(mapLevels);
+            LevelsMap levelsMap = FindObjectOfType<LevelsMap>();
+            Selection.activeGameObject =
+                mapLevels.Any()
+                    ? mapLevels[Mathf.Max(0, ind - 1)].gameObject
+                    : levelsMap.gameObject;
+            SetStarsEnabled(levelsMap, levelsMap.StarsEnabled);
+            _pendingDeletedGameObject = _mapLevel.gameObject;
+        }
+
+        private void DeletePendingGameObject()
+        {
+            if (_pendingDeletedGameObject != null)
+            {
+                DestroyImmediate(_pendingDeletedGameObject);
+                _pendingDeletedGameObject = null;
+            }
+        }
+    }
+}

+ 8 - 0
Assets/Plugins/Editor/SmartLevelsMap/MapLevelEditor.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 7fa58eb26b85cba439518f56c676bb47
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 5 - 0
Assets/Plugins/OpenIAB.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 914bdc6bbb7147b48a3fe7ebc021b12a
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/OpenIAB/Android.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 62cfc084b27a4d14b8e708d5d2631881
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/OpenIAB/iOS.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 3273e231fb302e74393238c9c876f853
+folderAsset: yes
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/OpenIAB_W8Plugin.dll.mdb


+ 4 - 0
Assets/Plugins/OpenIAB_W8Plugin.dll.mdb.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: bdfb303c75edbc3458143820b7c141fe
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/OpenIAB_W8Plugin.pdb


+ 4 - 0
Assets/Plugins/OpenIAB_W8Plugin.pdb.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 5289aa8a84ceb2042b8dffef999af3b3
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/OpenIAB_manual.pdf


+ 4 - 0
Assets/Plugins/OpenIAB_manual.pdf.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 8a282a5c4cb249c46bc4a034230fbf23
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Pixelplacement.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 8a34e0eeedd2b4bb7a52529c26d5fd03
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Pixelplacement/iTween.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 62c61d3ebfdbc4210b98849503e254dc
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Pixelplacement/iTween/ReadMe!.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 2d2cb0af9aa924b12bd57127320643a3
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 3 - 0
Assets/Plugins/Pixelplacement/iTween/ReadMe!/ReadMe!.txt

@@ -0,0 +1,3 @@
+iTween can be used with all scripting languages that Unity supports including JavaScript, C# and Boo. To install iTween create a folder named "Plugins" in your project's assets (if you are using C# the location of iTween does not matter as long as it is inside your assets folder).
+
+For complete documentation, examples and information visit: http://itween.pixelplacement.com

+ 4 - 0
Assets/Plugins/Pixelplacement/iTween/ReadMe!/ReadMe!.txt.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: b68b11cac1ab04f95985e32ea67b8435
+TextScriptImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/Pixelplacement/iTween/Sample.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 2b4957ecfb9d44cb59b99d2305c1848c
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 10 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/MoveSample.cs

@@ -0,0 +1,10 @@
+using UnityEngine;
+using System.Collections;
+
+public class MoveSample : MonoBehaviour
+{	
+	void Start(){
+		iTween.MoveBy(gameObject, iTween.Hash("x", 2, "easeType", "easeInOutExpo", "loopType", "pingPong", "delay", .1));
+	}
+}
+

+ 8 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/MoveSample.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 93cb45d44c16f45a4bbd5099fe096c20
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 10 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/RotateSample.cs

@@ -0,0 +1,10 @@
+using UnityEngine;
+using System.Collections;
+
+public class RotateSample : MonoBehaviour
+{	
+	void Start(){
+		iTween.RotateBy(gameObject, iTween.Hash("x", .25, "easeType", "easeInOutBack", "loopType", "pingPong", "delay", .4));
+	}
+}
+

+ 8 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/RotateSample.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d6bc01eb564f142a1ada6ced5215636a
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

BIN
Assets/Plugins/Pixelplacement/iTween/Sample/Sample.unity


+ 4 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/Sample.unity.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 17c6d1d46ed4a4cd19bb7f7a231386ba
+DefaultImporter:
+  userData: 

+ 16 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/SampleInfo.cs

@@ -0,0 +1,16 @@
+using UnityEngine;
+using System.Collections;
+
+public class SampleInfo : MonoBehaviour
+{
+void OnGUI(){
+		GUILayout.Label("iTween can spin, shake, punch, move, handle audio, fade color and transparency \nand much more with each task needing only one line of code.");
+		GUILayout.BeginHorizontal();
+		GUILayout.Label("iTween works with C#, JavaScript and Boo. For full documentation and examples visit:");
+		if(GUILayout.Button("http://itween.pixelplacement.com")){
+			Application.OpenURL("http://itween.pixelplacement.com");
+		}
+		GUILayout.EndHorizontal();
+	}
+}
+

+ 8 - 0
Assets/Plugins/Pixelplacement/iTween/Sample/SampleInfo.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 5273cf41de20842a5917d8346dffe707
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 7503 - 0
Assets/Plugins/Pixelplacement/iTween/iTween.cs

@@ -0,0 +1,7503 @@
+// Copyright (c) 2011 Bob Berkebile (pixelplacment)
+// Please direct any bugs/comments/suggestions to http://pixelplacement.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+/*
+TERMS OF USE - EASING EQUATIONS
+Open source under the BSD License.
+Copyright (c)2001 Robert Penner
+All rights reserved.
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#region Namespaces
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Reflection;
+using UnityEngine;
+#endregion
+
+/// <summary>
+/// <para>Version: 2.0.46</para>	 
+/// <para>Author: Bob Berkebile (http://pixelplacement.com)</para>
+/// <para>Support: http://itween.pixelplacement.com</para>
+/// </summary>
+public class iTween : MonoBehaviour{
+		
+	#region Variables
+	
+	//repository of all living iTweens:
+	public static List<Hashtable> tweens = new List<Hashtable>();
+	
+	//camera fade object:
+	private static GameObject cameraFade;
+	
+	//status members (made public for visual troubleshooting in the inspector):
+	public string id, type, method;
+	public iTween.EaseType easeType;
+	public float time, delay;
+	public LoopType loopType;
+	public bool isRunning,isPaused;
+	/* GFX47 MOD START */
+	public string _name;
+	/* GFX47 MOD END */
+		
+	//private members:
+ 	private float runningTime, percentage;
+	private float delayStarted; //probably not neccesary that this be protected but it shuts Unity's compiler up about this being "never used"
+	private bool kinematic, isLocal, loop, reverse, wasPaused, physics;
+	private Hashtable tweenArguments;
+	private Space space;
+	private delegate float EasingFunction(float start, float end, float Value);
+	private delegate void ApplyTween();
+	private EasingFunction ease;
+	private ApplyTween apply;
+	private AudioSource audioSource;
+	private Vector3[] vector3s;
+	private Vector2[] vector2s;
+	private Color[,] colors;
+	private float[] floats;
+	private Rect[] rects;
+	private CRSpline path;
+	private Vector3 preUpdate;
+	private Vector3 postUpdate;
+	private NamedValueColor namedcolorvalue;
+
+    private float lastRealTime; // Added by PressPlay
+    private bool useRealTime; // Added by PressPlay
+	
+	private Transform thisTransform;
+
+
+	/// <summary>
+	/// The type of easing to use based on Robert Penner's open source easing equations (http://www.robertpenner.com/easing_terms_of_use.html).
+	/// </summary>
+	public enum EaseType{
+		easeInQuad,
+		easeOutQuad,
+		easeInOutQuad,
+		easeInCubic,
+		easeOutCubic,
+		easeInOutCubic,
+		easeInQuart,
+		easeOutQuart,
+		easeInOutQuart,
+		easeInQuint,
+		easeOutQuint,
+		easeInOutQuint,
+		easeInSine,
+		easeOutSine,
+		easeInOutSine,
+		easeInExpo,
+		easeOutExpo,
+		easeInOutExpo,
+		easeInCirc,
+		easeOutCirc,
+		easeInOutCirc,
+		linear,
+		spring,
+		/* GFX47 MOD START */
+		//bounce,
+		easeInBounce,
+		easeOutBounce,
+		easeInOutBounce,
+		/* GFX47 MOD END */
+		easeInBack,
+		easeOutBack,
+		easeInOutBack,
+		/* GFX47 MOD START */
+		//elastic,
+		easeInElastic,
+		easeOutElastic,
+		easeInOutElastic,
+		/* GFX47 MOD END */
+		punch
+	}
+	
+	/// <summary>
+	/// The type of loop (if any) to use.  
+	/// </summary>
+	public enum LoopType{
+		/// <summary>
+		/// Do not loop.
+		/// </summary>
+		none,
+		/// <summary>
+		/// Rewind and replay.
+		/// </summary>
+		loop,
+		/// <summary>
+		/// Ping pong the animation back and forth.
+		/// </summary>
+		pingPong
+	}
+	
+	/// <summary>
+	/// Many shaders use more than one color. Use can have iTween's Color methods operate on them by name.   
+	/// </summary>
+	public enum NamedValueColor{
+		/// <summary>
+		/// The main color of a material. Used by default and not required for Color methods to work in iTween.
+		/// </summary>
+		_Color,
+		/// <summary>
+		/// The specular color of a material (used in specular/glossy/vertexlit shaders).
+		/// </summary>
+		_SpecColor,
+		/// <summary>
+		/// The emissive color of a material (used in vertexlit shaders).
+		/// </summary>
+		_Emission,
+		/// <summary>
+		/// The reflection color of the material (used in reflective shaders).
+		/// </summary>
+		_ReflectColor
+	}
+				
+	#endregion
+	
+	#region Defaults
+	
+	/// <summary>
+	/// A collection of baseline presets that iTween needs and utilizes if certain parameters are not provided. 
+	/// </summary>
+	public static class Defaults{
+		//general defaults:
+		public static float time = 1f;
+		public static float delay = 0f;	
+		public static NamedValueColor namedColorValue = NamedValueColor._Color;
+		public static LoopType loopType = LoopType.none;
+		public static EaseType easeType = iTween.EaseType.easeOutExpo;
+		public static float lookSpeed = 3f;
+		public static bool isLocal = false;
+		public static Space space = Space.Self;
+		public static bool orientToPath = false;
+		public static Color color = Color.white;
+		//update defaults:
+		public static float updateTimePercentage = .05f;
+		public static float updateTime = 1f*updateTimePercentage;
+		//cameraFade defaults:
+		public static int cameraFadeDepth = 999999;
+		//path look ahead amount:
+		public static float lookAhead = .05f;
+        public static bool useRealTime = false; // Added by PressPlay
+		//look direction:
+		public static Vector3 up = Vector3.up;
+	}
+	
+	#endregion
+	
+	#region #1 Static Registers
+
+	/// <summary>
+	/// Sets up a GameObject to avoid hiccups when an initial iTween is added. It's advisable to run this on every object you intend to run iTween on in its Start or Awake.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target to be initialized for iTween.
+	/// </param>
+	public static void Init(GameObject target){
+		MoveBy(target,Vector3.zero,0);
+	}
+	
+	/// <summary>
+	/// Instantly changes the amount(transparency) of a camera fade and then returns it back over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how transparent the Texture2D that the camera fade uses is.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void CameraFadeFrom(float amount, float time){
+		if(cameraFade){
+			CameraFadeFrom(Hash("amount",amount,"time",time));
+		}else{
+			Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
+		}
+	}
+	
+	/// <summary>
+	/// Instantly changes the amount(transparency) of a camera fade and then returns it back over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how transparent the Texture2D that the camera fade uses is.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void CameraFadeFrom(Hashtable args){		
+		//establish iTween:
+		if(cameraFade){
+			ColorFrom(cameraFade,args);
+		}else{
+			Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
+		}
+	}	
+	
+	/// <summary>
+	/// Changes the amount(transparency) of a camera fade over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how transparent the Texture2D that the camera fade uses is.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void CameraFadeTo(float amount, float time){
+		if(cameraFade){
+			CameraFadeTo(Hash("amount",amount,"time",time));
+		}else{
+			Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
+		}
+	}	
+	
+	/// <summary>
+	/// Changes the amount(transparency) of a camera fade over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how transparent the Texture2D that the camera fade uses is.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void CameraFadeTo(Hashtable args){
+		/*
+		CameraFadeAdd(Defaults.cameraFadeDepth);
+		
+		//rescale cameraFade just in case screen size has changed to ensure it takes up the full screen:
+		cameraFade.guiTexture.pixelInset=new Rect(0,0,Screen.width,Screen.height);
+		*/
+	
+		if(cameraFade){
+			//establish iTween:
+			ColorTo(cameraFade,args);
+		}else{
+			Debug.LogError("iTween Error: You must first add a camera fade object with CameraFadeAdd() before atttempting to use camera fading.");
+		}
+	}	
+	
+	/// <summary>
+	/// Returns a value to an 'oncallback' method interpolated between the supplied 'from' and 'to' values for application as desired.  Requires an 'onupdate' callback that accepts the same type as the supplied 'from' and 'to' properties.
+	/// </summary>
+	/// <param name="from">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> or <see cref="Vector3"/> or <see cref="Vector2"/> or <see cref="Color"/> or <see cref="Rect"/> for the starting value.
+	/// </param> 
+	/// <param name="to">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> or <see cref="Vector3"/> or <see cref="Vector2"/> or <see cref="Color"/> or <see cref="Rect"/> for the ending value.
+	/// </param> 
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed (only works with Vector2, Vector3, and Floats)
+	/// </param>	
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ValueTo(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		if (!args.Contains("onupdate") || !args.Contains("from") || !args.Contains("to")) {
+			Debug.LogError("iTween Error: ValueTo() requires an 'onupdate' callback function and a 'from' and 'to' property.  The supplied 'onupdate' callback must accept a single argument that is the same type as the supplied 'from' and 'to' properties!");
+			return;
+		}else{
+			//establish iTween:
+			args["type"]="value";
+			
+			if (args["from"].GetType() == typeof(Vector2)) {
+				args["method"]="vector2";
+			}else if (args["from"].GetType() == typeof(Vector3)) {
+				args["method"]="vector3";
+			}else if (args["from"].GetType() == typeof(Rect)) {
+				args["method"]="rect";
+			}else if (args["from"].GetType() == typeof(Single)) {
+				args["method"]="float";
+			}else if (args["from"].GetType() == typeof(Color)) {
+				args["method"]="color";
+			}else{
+				Debug.LogError("iTween Error: ValueTo() only works with interpolating Vector3s, Vector2s, floats, ints, Rects and Colors!");
+				return;	
+			}
+			
+			//set a default easeType of linear if none is supplied since eased color interpolation is nearly unrecognizable:
+			if (!args.Contains("easetype")) {
+				args.Add("easetype",EaseType.linear);
+			}
+			
+			Launch(target,args);
+		}
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with MINIMUM customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void FadeFrom(GameObject target, float alpha, float time){
+		FadeFrom(target,Hash("alpha",alpha,"time",time));
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's alpha value instantly then returns it to the provided alpha over time with FULL customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation. Identical to using ColorFrom and using the "a" parameter.
+	/// </summary>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the initial alpha value of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the initial alpha value of the animation.
+	/// </param>
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void FadeFrom(GameObject target, Hashtable args){	
+		ColorFrom(target,args);
+	}		
+	
+	/// <summary>
+	/// Changes a GameObject's alpha value over time with MINIMUM customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void FadeTo(GameObject target, float alpha, float time){
+		FadeTo(target,Hash("alpha",alpha,"time",time));
+	}	
+
+	/// <summary>
+	/// Changes a GameObject's alpha value over time with FULL customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter.
+	/// </summary>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void FadeTo(GameObject target, Hashtable args){
+		ColorTo(target,args);
+	}		
+	
+	/// <summary>
+	/// Changes a GameObject's color values instantly then returns them to the provided properties over time with MINIMUM customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ColorFrom(GameObject target, Color color, float time){
+		ColorFrom(target,Hash("color",color,"time",time));
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's color values instantly then returns them to the provided properties over time with FULL customization options.  If a GUIText or GUITexture component is attached, it will become the target of the animation.
+	/// </summary>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="r">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color red.
+	/// </param>
+	/// <param name="g">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="b">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="a">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="namedcolorvalue">
+	/// A <see cref="NamedColorValue"/> or <see cref="System.String"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ColorFrom(GameObject target, Hashtable args){	
+		Color fromColor = new Color();
+		Color tempColor = new Color();
+		
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//handle children:
+		if(!args.Contains("includechildren") || (bool)args["includechildren"]){
+			foreach(Transform child in target.transform){
+				Hashtable argsCopy = (Hashtable)args.Clone();
+				argsCopy["ischild"]=true;
+				ColorFrom(child.gameObject,argsCopy);
+			}
+		}
+		
+		//set a default easeType of linear if none is supplied since eased color interpolation is nearly unrecognizable:
+		if (!args.Contains("easetype")) {
+			args.Add("easetype",EaseType.linear);
+		}
+		
+		//set tempColor and base fromColor:
+		if(target.GetComponent<GUITexture>()){
+			tempColor=fromColor=target.GetComponent<GUITexture>().color;	
+		}else if(target.GetComponent<GUIText>()){
+			tempColor=fromColor=target.GetComponent<GUIText>().material.color;
+		}else if(target.GetComponent<Renderer>()){
+			tempColor=fromColor=target.GetComponent<Renderer>().material.color;
+		}else if(target.GetComponent<Light>()){
+			tempColor=fromColor=target.GetComponent<Light>().color;
+		}
+		
+		//set augmented fromColor:
+		if(args.Contains("color")){
+			fromColor=(Color)args["color"];
+		}else{
+			if (args.Contains("r")) {
+				fromColor.r=(float)args["r"];
+			}
+			if (args.Contains("g")) {
+				fromColor.g=(float)args["g"];
+			}
+			if (args.Contains("b")) {
+				fromColor.b=(float)args["b"];
+			}
+			if (args.Contains("a")) {
+				fromColor.a=(float)args["a"];
+			}
+		}
+		
+		//alpha or amount?
+		if(args.Contains("amount")){
+			fromColor.a=(float)args["amount"];
+			args.Remove("amount");
+		}else if(args.Contains("alpha")){
+			fromColor.a=(float)args["alpha"];
+			args.Remove("alpha");
+		}
+		
+		//apply fromColor:
+		if(target.GetComponent<GUITexture>()){
+			target.GetComponent<GUITexture>().color=fromColor;	
+		}else if(target.GetComponent<GUIText>()){
+			target.GetComponent<GUIText>().material.color=fromColor;
+		}else if(target.GetComponent<Renderer>()){
+			target.GetComponent<Renderer>().material.color=fromColor;
+		}else if(target.GetComponent<Light>()){
+			target.GetComponent<Light>().color=fromColor;
+		}
+		
+		//set new color arg:
+		args["color"]=tempColor;
+		
+		//establish iTween:
+		args["type"]="color";
+		args["method"]="to";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Changes a GameObject's color values over time with MINIMUM customization options.  If a GUIText or GUITexture component is attached, they will become the target of the animation.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ColorTo(GameObject target, Color color, float time){
+		ColorTo(target,Hash("color",color,"time",time));
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's color values over time with FULL customization options.  If a GUIText or GUITexture component is attached, they will become the target of the animation.
+	/// </summary>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="r">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color red.
+	/// </param>
+	/// <param name="g">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="b">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="a">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="namedcolorvalue">
+	/// A <see cref="NamedColorValue"/> or <see cref="System.String"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ColorTo(GameObject target, Hashtable args){	
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//handle children:
+		if(!args.Contains("includechildren") || (bool)args["includechildren"]){
+			foreach(Transform child in target.transform){
+				Hashtable argsCopy = (Hashtable)args.Clone();
+				argsCopy["ischild"]=true;
+				ColorTo(child.gameObject,argsCopy);
+			}
+		}
+		
+		//set a default easeType of linear if none is supplied since eased color interpolation is nearly unrecognizable:
+		if (!args.Contains("easetype")) {
+			args.Add("easetype",EaseType.linear);
+		}
+		
+		//establish iTween:
+		args["type"]="color";
+		args["method"]="to";
+		Launch(target,args);
+	}	
+	
+	/// <summary>
+	/// Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with MINIMUM customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied.
+	/// </summary>
+	/// <param name="target"> 
+	/// A <see cref="GameObject"/> to be the target of the animation which holds the AudioSource to be changed.
+	/// </param>
+	/// <param name="volume"> for the target level of volume.
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <param name="pitch"> for the target pitch.
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void AudioFrom(GameObject target, float volume, float pitch, float time){
+		AudioFrom(target,Hash("volume",volume,"pitch",pitch,"time",time));
+	}
+	
+	/// <summary>
+	/// Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time with FULL customization options. Default AudioSource attached to GameObject will be used (if one exists) if not supplied. 
+	/// </summary>
+	/// <param name="audiosource">
+	/// A <see cref="AudioSource"/> for which AudioSource to use.
+	/// </param> 
+	/// <param name="volume">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target level of volume.
+	/// </param>
+	/// <param name="pitch">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target pitch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void AudioFrom(GameObject target, Hashtable args){
+		Vector2 tempAudioProperties;
+		Vector2 fromAudioProperties;
+		AudioSource tempAudioSource;
+		
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//set tempAudioSource:
+		if(args.Contains("audiosource")){
+			tempAudioSource=(AudioSource)args["audiosource"];
+		}else{
+			if(target.GetComponent<AudioSource>()){
+				tempAudioSource=target.GetComponent<AudioSource>();
+			}else{
+				//throw error if no AudioSource is available:
+				Debug.LogError("iTween Error: AudioFrom requires an AudioSource.");
+				return;
+			}
+		}			
+		
+		//set tempAudioProperties:
+		tempAudioProperties.x=fromAudioProperties.x=tempAudioSource.volume;
+		tempAudioProperties.y=fromAudioProperties.y=tempAudioSource.pitch;
+		
+		//set augmented fromAudioProperties:
+		if(args.Contains("volume")){
+			fromAudioProperties.x=(float)args["volume"];
+		}
+		if(args.Contains("pitch")){
+			fromAudioProperties.y=(float)args["pitch"];
+		}
+		
+		//apply fromAudioProperties:
+		tempAudioSource.volume=fromAudioProperties.x;
+		tempAudioSource.pitch=fromAudioProperties.y;
+				
+		//set new volume and pitch args:
+		args["volume"]=tempAudioProperties.x;
+		args["pitch"]=tempAudioProperties.y;
+		
+		//set a default easeType of linear if none is supplied since eased audio interpolation is nearly unrecognizable:
+		if (!args.Contains("easetype")) {
+			args.Add("easetype",EaseType.linear);
+		}
+		
+		//establish iTween:
+		args["type"]="audio";
+		args["method"]="to";
+		Launch(target,args);			
+	}		
+
+	/// <summary>
+	/// Fades volume and pitch of an AudioSource with MINIMUM customization options.  Default AudioSource attached to GameObject will be used (if one exists) if not supplied. 
+	/// </summary>
+	/// <param name="target"> 
+	/// A <see cref="GameObject"/> to be the target of the animation which holds the AudioSource to be changed.
+	/// </param>
+	/// <param name="volume"> for the target level of volume.
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <param name="pitch"> for the target pitch.
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void AudioTo(GameObject target, float volume, float pitch, float time){
+		AudioTo(target,Hash("volume",volume,"pitch",pitch,"time",time));
+	}
+	
+	/// <summary>
+	/// Fades volume and pitch of an AudioSource with FULL customization options.  Default AudioSource attached to GameObject will be used (if one exists) if not supplied. 
+	/// </summary>
+	/// <param name="audiosource">
+	/// A <see cref="AudioSource"/> for which AudioSource to use.
+	/// </param> 
+	/// <param name="volume">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target level of volume.
+	/// </param>
+	/// <param name="pitch">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target pitch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void AudioTo(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//set a default easeType of linear if none is supplied since eased audio interpolation is nearly unrecognizable:
+		if (!args.Contains("easetype")) {
+			args.Add("easetype",EaseType.linear);
+		}
+		
+		//establish iTween:
+		args["type"]="audio";
+		args["method"]="to";
+		Launch(target,args);			
+	}	
+	
+	/// <summary>
+	/// Plays an AudioClip once based on supplied volume and pitch and following any delay with MINIMUM customization options. AudioSource is optional as iTween will provide one.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation which holds the AudioSource to be utilized.
+	/// </param>
+	/// <param name="audioclip">
+	/// A <see cref="AudioClip"/> for a reference to the AudioClip to be played.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> for the time in seconds the action will wait before beginning.
+	/// </param>
+	public static void Stab(GameObject target, AudioClip audioclip, float delay){
+		Stab(target,Hash("audioclip",audioclip,"delay",delay));
+	}
+	
+	/// <summary>
+	/// Plays an AudioClip once based on supplied volume and pitch and following any delay with FULL customization options. AudioSource is optional as iTween will provide one.
+	/// </summary>
+	/// <param name="audioclip">
+	/// A <see cref="AudioClip"/> for a reference to the AudioClip to be played.
+	/// </param> 
+	/// <param name="audiosource">
+	/// A <see cref="AudioSource"/> for which AudioSource to use
+	/// </param> 
+	/// <param name="volume">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target level of volume.
+	/// </param>
+	/// <param name="pitch">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target pitch.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the action will wait before beginning.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void Stab(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="stab";
+		Launch(target,args);			
+	}
+	
+	/// <summary>
+	/// Instantly rotates a GameObject to look at the supplied Vector3 then returns it to it's starting rotation over time with MINIMUM customization options. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> to be the Vector3 that the target will look towards.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void LookFrom(GameObject target, Vector3 looktarget, float time){
+		LookFrom(target,Hash("looktarget",looktarget,"time",time));
+	}	
+	
+	/// <summary>
+	/// Instantly rotates a GameObject to look at a supplied Transform or Vector3 then returns it to it's starting rotation over time with FULL customization options. 
+	/// </summary>
+	/// <param name="looktarget">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void LookFrom(GameObject target, Hashtable args){
+		Vector3 tempRotation;
+		Vector3 tempRestriction;
+		
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//set look:
+		tempRotation=target.transform.eulerAngles;
+		if (args["looktarget"].GetType() == typeof(Transform)) {
+			//target.transform.LookAt((Transform)args["looktarget"]);
+			target.transform.LookAt((Transform)args["looktarget"], (Vector3?)args["up"] ?? Defaults.up);
+		}else if(args["looktarget"].GetType() == typeof(Vector3)){
+			//target.transform.LookAt((Vector3)args["looktarget"]);
+			target.transform.LookAt((Vector3)args["looktarget"], (Vector3?)args["up"] ?? Defaults.up);
+		}
+		
+		//axis restriction:
+		if(args.Contains("axis")){
+			tempRestriction=target.transform.eulerAngles;
+			switch((string)args["axis"]){
+				case "x":
+				 	tempRestriction.y=tempRotation.y;
+					tempRestriction.z=tempRotation.z;
+				break;
+				case "y":
+					tempRestriction.x=tempRotation.x;
+					tempRestriction.z=tempRotation.z;
+				break;
+				case "z":
+					tempRestriction.x=tempRotation.x;
+					tempRestriction.y=tempRotation.y;
+				break;
+			}
+			target.transform.eulerAngles=tempRestriction;
+		}		
+		
+		//set new rotation:
+		args["rotation"] = tempRotation;
+		
+		//establish iTween
+		args["type"]="rotate";
+		args["method"]="to";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Rotates a GameObject to look at the supplied Vector3 over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> to be the Vector3 that the target will look towards.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void LookTo(GameObject target, Vector3 looktarget, float time){
+		LookTo(target,Hash("looktarget",looktarget,"time",time));
+	}
+	
+	/// <summary>
+	/// Rotates a GameObject to look at a supplied Transform or Vector3 over time with FULL customization options.
+	/// </summary>
+	/// <param name="looktarget">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void LookTo(GameObject target, Hashtable args){		
+		//clean args:
+		args = iTween.CleanArgs(args);			
+		
+		//additional property to ensure ConflictCheck can work correctly since Transforms are refrences:		
+		if(args.Contains("looktarget")){
+			if (args["looktarget"].GetType() == typeof(Transform)) {
+				Transform transform = (Transform)args["looktarget"];
+				args["position"]=new Vector3(transform.position.x,transform.position.y,transform.position.z);
+				args["rotation"]=new Vector3(transform.eulerAngles.x,transform.eulerAngles.y,transform.eulerAngles.z);
+			}
+		}
+		
+		//establish iTween
+		args["type"]="look";
+		args["method"]="to";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Changes a GameObject's position over time to a supplied destination with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="position">
+	/// A <see cref="Vector3"/> for the destination Vector3.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void MoveTo(GameObject target, Vector3 position, float time){
+		MoveTo(target,Hash("position",position,"time",time));
+	}	
+		
+	/// <summary>
+	/// Changes a GameObject's position over time to a supplied destination with FULL customization options.
+	/// </summary>
+	/// <param name="position">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a point in space the GameObject will animate to.
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/> or <see cref="Vector3[]"/> for a list of points to draw a Catmull-Rom through for a curved animation path.
+	/// </param>
+	/// <param name="movetopath">
+	/// A <see cref="System.Boolean"/> for whether to automatically generate a curve from the GameObject's current position to the beginning of the path. True by default.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="lookahead">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how much of a percentage to look ahead on a path to influence how strict "orientopath" is.
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void MoveTo(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//additional property to ensure ConflictCheck can work correctly since Transforms are refrences:		
+		if(args.Contains("position")){
+			if (args["position"].GetType() == typeof(Transform)) {
+				Transform transform = (Transform)args["position"];
+				args["position"]=new Vector3(transform.position.x,transform.position.y,transform.position.z);
+				args["rotation"]=new Vector3(transform.eulerAngles.x,transform.eulerAngles.y,transform.eulerAngles.z);
+				args["scale"]=new Vector3(transform.localScale.x,transform.localScale.y,transform.localScale.z);
+			}
+		}		
+		
+		//establish iTween:
+		args["type"]="move";
+		args["method"]="to";
+		Launch(target,args);
+	}
+		
+	/// <summary>
+	/// Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="position">
+	/// A <see cref="Vector3"/> for the destination Vector3.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void MoveFrom(GameObject target, Vector3 position, float time){
+		MoveFrom(target,Hash("position",position,"time",time));
+	}		
+	
+	/// <summary>
+	/// Instantly changes a GameObject's position to a supplied destination then returns it to it's starting position over time with FULL customization options.
+	/// </summary>
+	/// <param name="position">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a point in space the GameObject will animate to.
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/> or <see cref="Vector3[]"/> for a list of points to draw a Catmull-Rom through for a curved animation path.
+	/// </param>
+	/// <param name="movetopath">
+	/// A <see cref="System.Boolean"/> for whether to automatically generate a curve from the GameObject's current position to the beginning of the path. True by default.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="lookahead">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for how much of a percentage to look ahead on a path to influence how strict "orientopath" is.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void MoveFrom(GameObject target, Hashtable args){
+		//clean args:
+			args = iTween.CleanArgs(args);
+		
+		bool tempIsLocal;
+		
+		//set tempIsLocal:
+		if(args.Contains("islocal")){
+			tempIsLocal = (bool)args["islocal"];
+		}else{
+			tempIsLocal = Defaults.isLocal;	
+		}
+		
+		if(args.Contains("path")){
+			Vector3[] fromPath;
+			Vector3[] suppliedPath;
+			if(args["path"].GetType() == typeof(Vector3[])){
+				Vector3[] temp = (Vector3[])args["path"];
+				suppliedPath=new Vector3[temp.Length];
+				Array.Copy(temp,suppliedPath, temp.Length);	
+			}else{
+				Transform[] temp = (Transform[])args["path"];
+				suppliedPath = new Vector3[temp.Length];
+				for (int i = 0; i < temp.Length; i++) {
+					suppliedPath[i]=temp[i].position;
+				}
+			}
+			if(suppliedPath[suppliedPath.Length-1] != target.transform.position){
+				fromPath= new Vector3[suppliedPath.Length+1];
+				Array.Copy(suppliedPath,fromPath,suppliedPath.Length);
+				if(tempIsLocal){
+					fromPath[fromPath.Length-1] = target.transform.localPosition;
+					target.transform.localPosition=fromPath[0];
+				}else{
+					fromPath[fromPath.Length-1] = target.transform.position;
+					target.transform.position=fromPath[0];
+				}
+				args["path"]=fromPath;
+			}else{
+				if(tempIsLocal){
+					target.transform.localPosition=suppliedPath[0];
+				}else{
+					target.transform.position=suppliedPath[0];
+				}
+				args["path"]=suppliedPath;
+			}
+		}else{
+			Vector3 tempPosition;
+			Vector3 fromPosition;
+			
+			//set tempPosition and base fromPosition:
+			if(tempIsLocal){
+				tempPosition=fromPosition=target.transform.localPosition;
+			}else{
+				tempPosition=fromPosition=target.transform.position;	
+			}
+			
+			//set augmented fromPosition:
+			if(args.Contains("position")){
+				if (args["position"].GetType() == typeof(Transform)){
+					Transform trans = (Transform)args["position"];
+					fromPosition=trans.position;
+				}else if(args["position"].GetType() == typeof(Vector3)){
+					fromPosition=(Vector3)args["position"];
+				}			
+			}else{
+				if (args.Contains("x")) {
+					fromPosition.x=(float)args["x"];
+				}
+				if (args.Contains("y")) {
+					fromPosition.y=(float)args["y"];
+				}
+				if (args.Contains("z")) {
+					fromPosition.z=(float)args["z"];
+				}
+			}
+			
+			//apply fromPosition:
+			if(tempIsLocal){
+				target.transform.localPosition = fromPosition;
+			}else{
+				target.transform.position = fromPosition;	
+			}
+			
+			//set new position arg:
+			args["position"]=tempPosition;
+		}
+			
+		//establish iTween:
+		args["type"]="move";
+		args["method"]="to";
+		Launch(target,args);
+	}
+		
+	/// <summary>
+	/// Translates a GameObject's position over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of change in position to move the GameObject.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void MoveAdd(GameObject target, Vector3 amount, float time){
+		MoveAdd(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Translates a GameObject's position over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of change in position to move the GameObject.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> or <see cref="System.String"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void MoveAdd(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="move";
+		args["method"]="add";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Adds the supplied coordinates to a GameObject's postion with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of change in position to move the GameObject.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void MoveBy(GameObject target, Vector3 amount, float time){
+		MoveBy(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Adds the supplied coordinates to a GameObject's position with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of change in position to move the GameObject.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> or <see cref="System.String"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void MoveBy(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="move";
+		args["method"]="by";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's scale over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="scale">
+	/// A <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ScaleTo(GameObject target, Vector3 scale, float time){
+		ScaleTo(target,Hash("scale",scale,"time",time));
+	}
+	
+	/// <summary>
+	/// Changes a GameObject's scale over time with FULL customization options.
+	/// </summary>
+	/// <param name="scale">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ScaleTo(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//additional property to ensure ConflictCheck can work correctly since Transforms are refrences:		
+		if(args.Contains("scale")){
+			if (args["scale"].GetType() == typeof(Transform)) {
+				Transform transform = (Transform)args["scale"];
+				args["position"]=new Vector3(transform.position.x,transform.position.y,transform.position.z);
+				args["rotation"]=new Vector3(transform.eulerAngles.x,transform.eulerAngles.y,transform.eulerAngles.z);
+				args["scale"]=new Vector3(transform.localScale.x,transform.localScale.y,transform.localScale.z);
+			}
+		}
+		
+		//establish iTween:
+		args["type"]="scale";
+		args["method"]="to";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Instantly changes a GameObject's scale then returns it to it's starting scale over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="scale">
+	/// A <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ScaleFrom(GameObject target, Vector3 scale, float time){
+		ScaleFrom(target,Hash("scale",scale,"time",time));
+	}
+	
+	/// <summary>
+	/// Instantly changes a GameObject's scale then returns it to it's starting scale over time with FULL customization options.
+	/// </summary>
+	/// <param name="scale">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ScaleFrom(GameObject target, Hashtable args){
+		Vector3 tempScale;
+		Vector3 fromScale;
+	
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//set base fromScale:
+		tempScale=fromScale=target.transform.localScale;
+		
+		//set augmented fromScale:
+		if(args.Contains("scale")){
+			if (args["scale"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)args["scale"];
+				fromScale=trans.localScale;
+			}else if(args["scale"].GetType() == typeof(Vector3)){
+				fromScale=(Vector3)args["scale"];
+			}	
+		}else{
+			if (args.Contains("x")) {
+				fromScale.x=(float)args["x"];
+			}
+			if (args.Contains("y")) {
+				fromScale.y=(float)args["y"];
+			}
+			if (args.Contains("z")) {
+				fromScale.z=(float)args["z"];
+			}
+		}
+		
+		//apply fromScale:
+		target.transform.localScale = fromScale;	
+		
+		//set new scale arg:
+		args["scale"]=tempScale;
+		
+		//establish iTween:
+		args["type"]="scale";
+		args["method"]="to";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Adds to a GameObject's scale over time with FULL customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of scale to be added to the GameObject's current scale.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ScaleAdd(GameObject target, Vector3 amount, float time){
+		ScaleAdd(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Adds to a GameObject's scale over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount to be added to the GameObject's current scale.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ScaleAdd(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="scale";
+		args["method"]="add";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Multiplies a GameObject's scale over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of scale to be multiplied by the GameObject's current scale.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ScaleBy(GameObject target, Vector3 amount, float time){
+		ScaleBy(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Multiplies a GameObject's scale over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount to be multiplied to the GameObject's current scale.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ScaleBy(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="scale";
+		args["method"]="by";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Rotates a GameObject to the supplied Euler angles in degrees over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="rotation">
+	/// A <see cref="Vector3"/> for the target Euler angles in degrees to rotate to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void RotateTo(GameObject target, Vector3 rotation, float time){
+		RotateTo(target,Hash("rotation",rotation,"time",time));
+	}
+	
+	/// <summary>
+	/// Rotates a GameObject to the supplied Euler angles in degrees over time with FULL customization options.
+	/// </summary>
+	/// <param name="rotation">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the target Euler angles in degrees to rotate to.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void RotateTo(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//additional property to ensure ConflictCheck can work correctly since Transforms are refrences:		
+		if(args.Contains("rotation")){
+			if (args["rotation"].GetType() == typeof(Transform)) {
+				Transform transform = (Transform)args["rotation"];
+				args["position"]=new Vector3(transform.position.x,transform.position.y,transform.position.z);
+				args["rotation"]=new Vector3(transform.eulerAngles.x,transform.eulerAngles.y,transform.eulerAngles.z);
+				args["scale"]=new Vector3(transform.localScale.x,transform.localScale.y,transform.localScale.z);
+			}
+		}		
+		
+		//establish iTween
+		args["type"]="rotate";
+		args["method"]="to";
+		Launch(target,args);
+	}	
+	
+	/// <summary>
+	/// Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="rotation">
+	/// A <see cref="Vector3"/> for the target Euler angles in degrees to rotate from.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void RotateFrom(GameObject target, Vector3 rotation, float time){
+		RotateFrom(target,Hash("rotation",rotation,"time",time));
+	}
+	
+	/// <summary>
+	/// Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time (if allowed) with FULL customization options.
+	/// </summary>
+	/// <param name="rotation">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the target Euler angles in degrees to rotate to.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void RotateFrom(GameObject target, Hashtable args){
+		Vector3 tempRotation;
+		Vector3 fromRotation;
+		bool tempIsLocal;
+	
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//set tempIsLocal:
+		if(args.Contains("islocal")){
+			tempIsLocal = (bool)args["islocal"];
+		}else{
+			tempIsLocal = Defaults.isLocal;	
+		}
+
+		//set tempRotation and base fromRotation:
+		if(tempIsLocal){
+			tempRotation=fromRotation=target.transform.localEulerAngles;
+		}else{
+			tempRotation=fromRotation=target.transform.eulerAngles;	
+		}
+		
+		//set augmented fromRotation:
+		if(args.Contains("rotation")){
+			if (args["rotation"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)args["rotation"];
+				fromRotation=trans.eulerAngles;
+			}else if(args["rotation"].GetType() == typeof(Vector3)){
+				fromRotation=(Vector3)args["rotation"];
+			}	
+		}else{
+			if (args.Contains("x")) {
+				fromRotation.x=(float)args["x"];
+			}
+			if (args.Contains("y")) {
+				fromRotation.y=(float)args["y"];
+			}
+			if (args.Contains("z")) {
+				fromRotation.z=(float)args["z"];
+			}
+		}
+		
+		//apply fromRotation:
+		if(tempIsLocal){
+			target.transform.localEulerAngles = fromRotation;
+		}else{
+			target.transform.eulerAngles = fromRotation;	
+		}
+		
+		//set new rotation arg:
+		args["rotation"]=tempRotation;
+		
+		//establish iTween:
+		args["type"]="rotate";
+		args["method"]="to";
+		Launch(target,args);
+	}	
+	
+	/// <summary>
+	/// Adds supplied Euler angles in degrees to a GameObject's rotation over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of Euler angles in degrees to add to the current rotation of the GameObject.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void RotateAdd(GameObject target, Vector3 amount, float time){
+		RotateAdd(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Adds supplied Euler angles in degrees to a GameObject's rotation over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount of Euler angles in degrees to add to the current rotation of the GameObject.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> or <see cref="System.String"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void RotateAdd(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween:
+		args["type"]="rotate";
+		args["method"]="add";
+		Launch(target,args);
+	}
+	
+	/// <summary>
+	/// Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount to be multiplied by 360 to rotate the GameObject.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void RotateBy(GameObject target, Vector3 amount, float time){
+		RotateBy(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Multiplies supplied values by 360 and rotates a GameObject by calculated amount over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the amount to be multiplied by 360 to rotate the GameObject.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> or <see cref="System.String"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="speed">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> can be used instead of time to allow animation based on speed
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="easetype">
+	/// A <see cref="EaseType"/> or <see cref="System.String"/> for the shape of the easing curve applied to the animation.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed.
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void RotateBy(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="rotate";
+		args["method"]="by";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's position by a diminishing amount over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ShakePosition(GameObject target, Vector3 amount, float time){
+		ShakePosition(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's position by a diminishing amount over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>  
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ShakePosition(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="shake";
+		args["method"]="position";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's scale by a diminishing amount over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ShakeScale(GameObject target, Vector3 amount, float time){
+		ShakeScale(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's scale by a diminishing amount over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ShakeScale(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="shake";
+		args["method"]="scale";
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's rotation by a diminishing amount over time with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ShakeRotation(GameObject target, Vector3 amount, float time){
+		ShakeRotation(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Randomly shakes a GameObject's rotation by a diminishing amount over time with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param> 
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with shakes)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void ShakeRotation(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="shake";
+		args["method"]="rotation";
+		Launch(target,args);
+	}			
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of the punch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void PunchPosition(GameObject target, Vector3 amount, float time){
+		PunchPosition(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's position and wobbles it back to its initial position with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param> 
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget".
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param>   
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void PunchPosition(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="punch";
+		args["method"]="position";
+		args["easetype"]=EaseType.punch;
+		Launch(target,args);
+	}		
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of the punch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void PunchRotation(GameObject target, Vector3 amount, float time){
+		PunchRotation(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's rotation and wobbles it back to its initial rotation with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="space">
+	/// A <see cref="Space"/> for applying the transformation in either the world coordinate or local cordinate system. Defaults to local space.
+	/// </param> 
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param> 
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void PunchRotation(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="punch";
+		args["method"]="rotation";
+		args["easetype"]=EaseType.punch;
+		Launch(target,args);
+	}	
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with MINIMUM customization options.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of the punch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void PunchScale(GameObject target, Vector3 amount, float time){
+		PunchScale(target,Hash("amount",amount,"time",time));
+	}
+	
+	/// <summary>
+	/// Applies a jolt of force to a GameObject's scale and wobbles it back to its initial scale with FULL customization options.
+	/// </summary>
+	/// <param name="amount">
+	/// A <see cref="Vector3"/> for the magnitude of shake.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x magnitude.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y magnitude.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z magnitude.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	/// <param name="delay">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will wait before beginning.
+	/// </param> 
+	/// <param name="looptype">
+	/// A <see cref="LoopType"/> or <see cref="System.String"/> for the type of loop to apply once the animation has completed. (only "loop" is allowed with punches)
+	/// </param>
+	/// <param name="onstart">
+	/// A <see cref="System.String"/> for the name of a function to launch at the beginning of the animation.
+	/// </param>
+	/// <param name="onstarttarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onstart" method.
+	/// </param>
+	/// <param name="onstartparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onstart" method.
+	/// </param>
+	/// <param name="onupdate"> 
+	/// A <see cref="System.String"/> for the name of a function to launch on every step of the animation.
+	/// </param>
+	/// <param name="onupdatetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "onupdate" method.
+	/// </param>
+	/// <param name="onupdateparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "onupdate" method.
+	/// </param> 
+	/// <param name="oncomplete">
+	/// A <see cref="System.String"/> for the name of a function to launch at the end of the animation.
+	/// </param>
+	/// <param name="oncompletetarget">
+	/// A <see cref="GameObject"/> for a reference to the GameObject that holds the "oncomplete" method.
+	/// </param>
+	/// <param name="oncompleteparams">
+	/// A <see cref="System.Object"/> for arguments to be sent to the "oncomplete" method.
+	/// </param>
+	public static void PunchScale(GameObject target, Hashtable args){
+		//clean args:
+		args = iTween.CleanArgs(args);
+		
+		//establish iTween
+		args["type"]="punch";
+		args["method"]="scale";
+		args["easetype"]=EaseType.punch;
+		Launch(target,args);
+	}	
+	
+	#endregion
+	
+	#region #2 Generate Method Targets
+	
+	//call correct set target method and set tween application delegate:
+	void GenerateTargets(){
+		switch (type) {
+			case "value":
+				switch (method) {
+					case "float":
+						GenerateFloatTargets();
+						apply = new ApplyTween(ApplyFloatTargets);
+					break;
+				case "vector2":
+						GenerateVector2Targets();
+						apply = new ApplyTween(ApplyVector2Targets);
+					break;
+				case "vector3":
+						GenerateVector3Targets();
+						apply = new ApplyTween(ApplyVector3Targets);
+					break;
+				case "color":
+						GenerateColorTargets();
+						apply = new ApplyTween(ApplyColorTargets);
+					break;
+				case "rect":
+						GenerateRectTargets();
+						apply = new ApplyTween(ApplyRectTargets);
+					break;
+				}
+			break;
+			case "color":
+				switch (method) {
+					case "to":
+						GenerateColorToTargets();
+						apply = new ApplyTween(ApplyColorToTargets);
+					break;
+				}
+			break;
+			case "audio":
+				switch (method) {
+					case "to":
+						GenerateAudioToTargets();
+						apply = new ApplyTween(ApplyAudioToTargets);
+					break;
+				}
+			break;
+			case "move":
+				switch (method) {
+					case "to":
+						//using a path?
+						if(tweenArguments.Contains("path")){
+							GenerateMoveToPathTargets();
+							apply = new ApplyTween(ApplyMoveToPathTargets);
+						}else{ //not using a path?
+							GenerateMoveToTargets();
+							apply = new ApplyTween(ApplyMoveToTargets);
+						}
+					break;
+					case "by":
+					case "add":
+						GenerateMoveByTargets();
+						apply = new ApplyTween(ApplyMoveByTargets);
+					break;
+				}
+			break;
+			case "scale":
+				switch (method){
+					case "to":
+						GenerateScaleToTargets();
+						apply = new ApplyTween(ApplyScaleToTargets);
+					break;
+					case "by":
+						GenerateScaleByTargets();
+						apply = new ApplyTween(ApplyScaleToTargets);
+					break;
+					case "add":
+						GenerateScaleAddTargets();
+						apply = new ApplyTween(ApplyScaleToTargets);
+					break;
+				}
+			break;
+			case "rotate":
+				switch (method) {
+					case "to":
+						GenerateRotateToTargets();
+						apply = new ApplyTween(ApplyRotateToTargets);
+					break;
+					case "add":
+						GenerateRotateAddTargets();
+						apply = new ApplyTween(ApplyRotateAddTargets);
+					break;
+					case "by":
+						GenerateRotateByTargets();
+						apply = new ApplyTween(ApplyRotateAddTargets);
+					break;				
+				}
+			break;
+			case "shake":
+				switch (method) {
+					case "position":
+						GenerateShakePositionTargets();
+						apply = new ApplyTween(ApplyShakePositionTargets);
+					break;		
+					case "scale":
+						GenerateShakeScaleTargets();
+						apply = new ApplyTween(ApplyShakeScaleTargets);
+					break;
+					case "rotation":
+						GenerateShakeRotationTargets();
+						apply = new ApplyTween(ApplyShakeRotationTargets);
+					break;
+				}
+			break;			
+			case "punch":
+				switch (method) {
+					case "position":
+						GeneratePunchPositionTargets();
+						apply = new ApplyTween(ApplyPunchPositionTargets);
+					break;	
+					case "rotation":
+						GeneratePunchRotationTargets();
+						apply = new ApplyTween(ApplyPunchRotationTargets);
+					break;	
+					case "scale":
+						GeneratePunchScaleTargets();
+						apply = new ApplyTween(ApplyPunchScaleTargets);
+					break;
+				}
+			break;
+			case "look":
+				switch (method) {
+					case "to":
+						GenerateLookToTargets();
+						apply = new ApplyTween(ApplyLookToTargets);
+					break;	
+				}
+			break;	
+			case "stab":
+				GenerateStabTargets();
+				apply = new ApplyTween(ApplyStabTargets);
+			break;	
+		}
+	}
+	
+	#endregion
+	
+	#region #3 Generate Specific Targets
+	
+	void GenerateRectTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		rects=new Rect[3];
+		
+		//from and to values:
+		rects[0]=(Rect)tweenArguments["from"];
+		rects[1]=(Rect)tweenArguments["to"];
+	}		
+	
+	void GenerateColorTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		colors=new Color[1,3];
+		
+		//from and to values:
+		colors[0,0]=(Color)tweenArguments["from"];
+		colors[0,1]=(Color)tweenArguments["to"];
+	}	
+	
+	void GenerateVector3Targets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from and to values:
+		vector3s[0]=(Vector3)tweenArguments["from"];
+		vector3s[1]=(Vector3)tweenArguments["to"];
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateVector2Targets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector2s=new Vector2[3];
+		
+		//from and to values:
+		vector2s[0]=(Vector2)tweenArguments["from"];
+		vector2s[1]=(Vector2)tweenArguments["to"];
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			Vector3 fromV3 = new Vector3(vector2s[0].x,vector2s[0].y,0);
+			Vector3 toV3 = new Vector3(vector2s[1].x,vector2s[1].y,0);
+			float distance = Math.Abs(Vector3.Distance(fromV3,toV3));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateFloatTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		floats=new float[3];
+		
+		//from and to values:
+		floats[0]=(float)tweenArguments["from"];
+		floats[1]=(float)tweenArguments["to"];
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(floats[0] - floats[1]);
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+		
+	void GenerateColorToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		//colors = new Color[3];
+		
+		//from and init to values:
+		if(GetComponent<GUITexture>()){
+			colors = new Color[1,3];
+			colors[0,0] = colors[0,1] = GetComponent<GUITexture>().color;
+		}else if(GetComponent<GUIText>()){
+			colors = new Color[1,3];
+			colors[0,0] = colors[0,1] = GetComponent<GUIText>().material.color;
+		}else if(GetComponent<Renderer>()){
+			colors = new Color[GetComponent<Renderer>().materials.Length,3];
+			for (int i = 0; i < GetComponent<Renderer>().materials.Length; i++) {
+				colors[i,0]=GetComponent<Renderer>().materials[i].GetColor(namedcolorvalue.ToString());
+				colors[i,1]=GetComponent<Renderer>().materials[i].GetColor(namedcolorvalue.ToString());
+			}
+			//colors[0] = colors[1] = renderer.material.color;	
+		}else if(GetComponent<Light>()){
+			colors = new Color[1,3];
+			colors[0,0] = colors[0,1] = GetComponent<Light>().color;	
+		}else{
+			colors = new Color[1,3]; //empty placeholder incase the GO is perhaps an empty holder or something similar
+		}
+		
+		//to values:
+		if (tweenArguments.Contains("color")) {
+			//colors[1]=(Color)tweenArguments["color"];
+			for (int i = 0; i < colors.GetLength(0); i++) {
+				colors[i,1]=(Color)tweenArguments["color"];
+			}
+		}else{
+			if (tweenArguments.Contains("r")) {
+				//colors[1].r=(float)tweenArguments["r"];
+				for (int i = 0; i < colors.GetLength(0); i++) {
+					colors[i,1].r=(float)tweenArguments["r"];
+				}
+			}
+			if (tweenArguments.Contains("g")) {
+				//colors[1].g=(float)tweenArguments["g"];
+				for (int i = 0; i < colors.GetLength(0); i++) {
+					colors[i,1].g=(float)tweenArguments["g"];
+				}
+			}
+			if (tweenArguments.Contains("b")) {
+				//colors[1].b=(float)tweenArguments["b"];
+				for (int i = 0; i < colors.GetLength(0); i++) {
+					colors[i,1].b=(float)tweenArguments["b"];
+				}
+			}
+			if (tweenArguments.Contains("a")) {
+				//colors[1].a=(float)tweenArguments["a"];
+				for (int i = 0; i < colors.GetLength(0); i++) {
+					colors[i,1].a=(float)tweenArguments["a"];
+				}
+			}
+		}
+		
+		//alpha or amount?
+		if(tweenArguments.Contains("amount")){
+			//colors[1].a=(float)tweenArguments["amount"];
+			for (int i = 0; i < colors.GetLength(0); i++) {
+				colors[i,1].a=(float)tweenArguments["amount"];
+			}
+		}else if(tweenArguments.Contains("alpha")){
+			//colors[1].a=(float)tweenArguments["alpha"];
+			for (int i = 0; i < colors.GetLength(0); i++) {
+				colors[i,1].a=(float)tweenArguments["alpha"];
+			}
+		}
+	}
+	
+	void GenerateAudioToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector2s=new Vector2[3];
+		
+		//set audioSource:
+		if(tweenArguments.Contains("audiosource")){
+			audioSource=(AudioSource)tweenArguments["audiosource"];
+		}else{
+			if(GetComponent<AudioSource>()){
+				audioSource=GetComponent<AudioSource>();
+			}else{
+				//throw error if no AudioSource is available:
+				Debug.LogError("iTween Error: AudioTo requires an AudioSource.");
+				Dispose();
+			}
+		}		
+		
+		//from values and default to values:
+		vector2s[0]=vector2s[1]=new Vector2(audioSource.volume,audioSource.pitch);
+				
+		//to values:
+		if (tweenArguments.Contains("volume")) {
+			vector2s[1].x=(float)tweenArguments["volume"];	
+		}
+		if (tweenArguments.Contains("pitch")) {
+			vector2s[1].y=(float)tweenArguments["pitch"];	
+		}
+	}
+	
+	void GenerateStabTargets(){
+		//set audioSource:
+		if(tweenArguments.Contains("audiosource")){
+			audioSource=(AudioSource)tweenArguments["audiosource"];
+		}else{
+			if(GetComponent<AudioSource>()){
+				audioSource=GetComponent<AudioSource>();
+			}else{
+				//add and populate AudioSource if one doesn't exist:
+				gameObject.AddComponent<AudioSource>();
+				audioSource=GetComponent<AudioSource>();
+				audioSource.playOnAwake=false;
+				
+			}
+		}
+		
+		//populate audioSource's clip:
+		audioSource.clip=(AudioClip)tweenArguments["audioclip"];
+		
+		//set audio's pitch and volume if requested:
+		if(tweenArguments.Contains("pitch")){
+			audioSource.pitch=(float)tweenArguments["pitch"];
+		}
+		if(tweenArguments.Contains("volume")){
+			audioSource.volume=(float)tweenArguments["volume"];
+		}
+			
+		//set run time based on length of clip after pitch is augmented
+		time=audioSource.clip.length/audioSource.pitch;
+	}
+	
+	void GenerateLookToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		vector3s[0]=thisTransform.eulerAngles;
+		
+		//set look:
+		if(tweenArguments.Contains("looktarget")){
+			if (tweenArguments["looktarget"].GetType() == typeof(Transform)) {
+				//transform.LookAt((Transform)tweenArguments["looktarget"]);
+				thisTransform.LookAt((Transform)tweenArguments["looktarget"], (Vector3?)tweenArguments["up"] ?? Defaults.up);
+			}else if(tweenArguments["looktarget"].GetType() == typeof(Vector3)){
+				//transform.LookAt((Vector3)tweenArguments["looktarget"]);
+				thisTransform.LookAt((Vector3)tweenArguments["looktarget"], (Vector3?)tweenArguments["up"] ?? Defaults.up);
+			}
+		}else{
+			Debug.LogError("iTween Error: LookTo needs a 'looktarget' property!");
+			Dispose();
+		}
+
+		//to values:
+		vector3s[1]=thisTransform.eulerAngles;
+		thisTransform.eulerAngles=vector3s[0];
+		
+		//axis restriction:
+		if(tweenArguments.Contains("axis")){
+			switch((string)tweenArguments["axis"]){
+				case "x":
+					vector3s[1].y=vector3s[0].y;
+					vector3s[1].z=vector3s[0].z;
+				break;
+				case "y":
+					vector3s[1].x=vector3s[0].x;
+					vector3s[1].z=vector3s[0].z;
+				break;
+				case "z":
+					vector3s[1].x=vector3s[0].x;
+					vector3s[1].y=vector3s[0].y;
+				break;
+			}
+		}
+		
+		//shortest distance:
+		vector3s[1]=new Vector3(clerp(vector3s[0].x,vector3s[1].x,1),clerp(vector3s[0].y,vector3s[1].y,1),clerp(vector3s[0].z,vector3s[1].z,1));
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}	
+	
+	void GenerateMoveToPathTargets(){
+		 Vector3[] suppliedPath;
+		
+		//create and store path points:
+		if(tweenArguments["path"].GetType() == typeof(Vector3[])){
+			Vector3[] temp = (Vector3[])tweenArguments["path"];
+			//if only one point is supplied fall back to MoveTo's traditional use since we can't have a curve with one value:
+			if(temp.Length==1){
+				Debug.LogError("iTween Error: Attempting a path movement with MoveTo requires an array of more than 1 entry!");
+				Dispose();
+			}
+			suppliedPath=new Vector3[temp.Length];
+			Array.Copy(temp,suppliedPath, temp.Length);
+		}else{
+			Transform[] temp = (Transform[])tweenArguments["path"];
+			//if only one point is supplied fall back to MoveTo's traditional use since we can't have a curve with one value:
+			if(temp.Length==1){
+				Debug.LogError("iTween Error: Attempting a path movement with MoveTo requires an array of more than 1 entry!");
+				Dispose();
+			}
+			suppliedPath = new Vector3[temp.Length];
+			for (int i = 0; i < temp.Length; i++) {
+				suppliedPath[i]=temp[i].position;
+			}
+		}
+		
+		//do we need to plot a path to get to the beginning of the supplied path?		
+		bool plotStart;
+		int offset;
+		if(thisTransform.position != suppliedPath[0]){
+			if(!tweenArguments.Contains("movetopath") || (bool)tweenArguments["movetopath"]==true){
+				plotStart=true;
+				offset=3;	
+			}else{
+				plotStart=false;
+				offset=2;
+			}
+		}else{
+			plotStart=false;
+			offset=2;
+		}				
+
+		//build calculated path:
+		vector3s = new Vector3[suppliedPath.Length+offset];
+		if(plotStart){
+			vector3s[1]=thisTransform.position;
+			offset=2;
+		}else{
+			offset=1;
+		}		
+		
+		//populate calculate path;
+		Array.Copy(suppliedPath,0,vector3s,offset,suppliedPath.Length);
+		
+		//populate start and end control points:
+		//vector3s[0] = vector3s[1] - vector3s[2];
+		vector3s[0] = vector3s[1] + (vector3s[1] - vector3s[2]);
+		vector3s[vector3s.Length-1] = vector3s[vector3s.Length-2] + (vector3s[vector3s.Length-2] - vector3s[vector3s.Length-3]);
+		
+		//is this a closed, continuous loop? yes? well then so let's make a continuous Catmull-Rom spline!
+		if(vector3s[1] == vector3s[vector3s.Length-2]){
+			Vector3[] tmpLoopSpline = new Vector3[vector3s.Length];
+			Array.Copy(vector3s,tmpLoopSpline,vector3s.Length);
+			tmpLoopSpline[0]=tmpLoopSpline[tmpLoopSpline.Length-3];
+			tmpLoopSpline[tmpLoopSpline.Length-1]=tmpLoopSpline[2];
+			vector3s=new Vector3[tmpLoopSpline.Length];
+			Array.Copy(tmpLoopSpline,vector3s,tmpLoopSpline.Length);
+		}
+		
+		//create Catmull-Rom path:
+		path = new CRSpline(vector3s);
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = PathLength(vector3s);
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateMoveToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		if (isLocal) {
+			vector3s[0]=vector3s[1]=thisTransform.localPosition;				
+		}else{
+			vector3s[0]=vector3s[1]=thisTransform.position;
+		}
+		
+		//to values:
+		if (tweenArguments.Contains("position")) {
+			if (tweenArguments["position"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)tweenArguments["position"];
+				vector3s[1]=trans.position;
+			}else if(tweenArguments["position"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)tweenArguments["position"];
+			}
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+		
+		//handle orient to path request:
+		if(tweenArguments.Contains("orienttopath") && (bool)tweenArguments["orienttopath"]){
+			tweenArguments["looktarget"] = vector3s[1];
+		}
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateMoveByTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Translate usage to allow Space utilization, [4] original rotation to make sure look requests don't interfere with the direction object should move in, [5] for dial in location:
+		vector3s=new Vector3[6];
+		
+		//grab starting rotation:
+		vector3s[4] = thisTransform.eulerAngles;
+		
+		//from values:
+		vector3s[0]=vector3s[1]=vector3s[3]=thisTransform.position;
+				
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=vector3s[0] + (Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=vector3s[0].x + (float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=vector3s[0].y +(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=vector3s[0].z + (float)tweenArguments["z"];
+			}
+		}	
+		
+		//calculation for dial in:
+		thisTransform.Translate(vector3s[1],space);
+		vector3s[5] = thisTransform.position;
+		thisTransform.position=vector3s[0];
+		
+		//handle orient to path request:
+		if(tweenArguments.Contains("orienttopath") && (bool)tweenArguments["orienttopath"]){
+			tweenArguments["looktarget"] = vector3s[1];
+		}
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateScaleToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		vector3s[0]=vector3s[1]=thisTransform.localScale;				
+
+		//to values:
+		if (tweenArguments.Contains("scale")) {
+			if (tweenArguments["scale"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)tweenArguments["scale"];
+				vector3s[1]=trans.localScale;					
+			}else if(tweenArguments["scale"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)tweenArguments["scale"];
+			}
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		} 
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateScaleByTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		vector3s[0]=vector3s[1]=thisTransform.localScale;				
+
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=Vector3.Scale(vector3s[1],(Vector3)tweenArguments["amount"]);
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x*=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y*=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z*=(float)tweenArguments["z"];
+			}
+		} 
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateScaleAddTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		vector3s[0]=vector3s[1]=thisTransform.localScale;				
+
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]+=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x+=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y+=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z+=(float)tweenArguments["z"];
+			}
+		}
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateRotateToTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		if (isLocal) {
+			vector3s[0]=vector3s[1]=thisTransform.localEulerAngles;				
+		}else{
+			vector3s[0]=vector3s[1]=thisTransform.eulerAngles;
+		}
+		
+		//to values:
+		if (tweenArguments.Contains("rotation")) {
+			if (tweenArguments["rotation"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)tweenArguments["rotation"];
+				vector3s[1]=trans.eulerAngles;			
+			}else if(tweenArguments["rotation"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)tweenArguments["rotation"];
+			}
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+		
+		//shortest distance:
+		vector3s[1]=new Vector3(clerp(vector3s[0].x,vector3s[1].x,1),clerp(vector3s[0].y,vector3s[1].y,1),clerp(vector3s[0].z,vector3s[1].z,1));
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}
+	
+	void GenerateRotateAddTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Rotate usage to allow Space utilization:
+		vector3s=new Vector3[5];
+		
+		//from values:
+		vector3s[0]=vector3s[1]=vector3s[3]=thisTransform.eulerAngles;
+		
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]+=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x+=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y+=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z+=(float)tweenArguments["z"];
+			}
+		}
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}		
+	
+	void GenerateRotateByTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Rotate usage to allow Space utilization:
+		vector3s=new Vector3[4];
+		
+		//from values:
+		vector3s[0]=vector3s[1]=vector3s[3]=thisTransform.eulerAngles;
+		
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]+=Vector3.Scale((Vector3)tweenArguments["amount"],new Vector3(360,360,360));
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x+=360 * (float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y+=360 * (float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z+=360 * (float)tweenArguments["z"];
+			}
+		}
+		
+		//need for speed?
+		if(tweenArguments.Contains("speed")){
+			float distance = Math.Abs(Vector3.Distance(vector3s[0],vector3s[1]));
+			time = distance/(float)tweenArguments["speed"];
+		}
+	}		
+	
+	void GenerateShakePositionTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] original rotation to make sure look requests don't interfere with the direction object should move in:
+		vector3s=new Vector3[4];
+		
+		//grab starting rotation:
+		vector3s[3] = thisTransform.eulerAngles;		
+		
+		//root:
+		vector3s[0]=thisTransform.position;
+		
+		//amount:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}		
+	
+	void GenerateShakeScaleTargets(){
+		//values holder [0] root value, [1] amount, [2] generated amount:
+		vector3s=new Vector3[3];
+		
+		//root:
+		vector3s[0]=thisTransform.localScale;
+		
+		//amount:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}		
+		
+	void GenerateShakeRotationTargets(){
+		//values holder [0] root value, [1] amount, [2] generated amount:
+		vector3s=new Vector3[3];
+		
+		//root:
+		vector3s[0]=thisTransform.eulerAngles;
+		
+		//amount:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}	
+	
+	void GeneratePunchPositionTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Translate usage to allow Space utilization, [4] original rotation to make sure look requests don't interfere with the direction object should move in:
+		vector3s=new Vector3[5];
+		
+		//grab starting rotation:
+		vector3s[4] = thisTransform.eulerAngles;
+		
+		//from values:
+		vector3s[0]=thisTransform.position;
+		vector3s[1]=vector3s[3]=Vector3.zero;
+				
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}	
+	
+	void GeneratePunchRotationTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation, [3] previous value for Translate usage to allow Space utilization:
+		vector3s=new Vector3[4];
+		
+		//from values:
+		vector3s[0]=thisTransform.eulerAngles;
+		vector3s[1]=vector3s[3]=Vector3.zero;
+				
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}		
+	
+	void GeneratePunchScaleTargets(){
+		//values holder [0] from, [1] to, [2] calculated value from ease equation:
+		vector3s=new Vector3[3];
+		
+		//from values:
+		vector3s[0]=thisTransform.localScale;
+		vector3s[1]=Vector3.zero;
+				
+		//to values:
+		if (tweenArguments.Contains("amount")) {
+			vector3s[1]=(Vector3)tweenArguments["amount"];
+		}else{
+			if (tweenArguments.Contains("x")) {
+				vector3s[1].x=(float)tweenArguments["x"];
+			}
+			if (tweenArguments.Contains("y")) {
+				vector3s[1].y=(float)tweenArguments["y"];
+			}
+			if (tweenArguments.Contains("z")) {
+				vector3s[1].z=(float)tweenArguments["z"];
+			}
+		}
+	}
+	
+	#endregion
+	
+	#region #4 Apply Targets
+	
+	void ApplyRectTargets(){
+		//calculate:
+		rects[2].x = ease(rects[0].x,rects[1].x,percentage);
+		rects[2].y = ease(rects[0].y,rects[1].y,percentage);
+		rects[2].width = ease(rects[0].width,rects[1].width,percentage);
+		rects[2].height = ease(rects[0].height,rects[1].height,percentage);
+		
+		//apply:
+		tweenArguments["onupdateparams"]=rects[2];
+		
+		//dial in:
+		if(percentage==1){
+			tweenArguments["onupdateparams"]=rects[1];
+		}
+	}		
+	
+	void ApplyColorTargets(){
+		//calculate:
+		colors[0,2].r = ease(colors[0,0].r,colors[0,1].r,percentage);
+		colors[0,2].g = ease(colors[0,0].g,colors[0,1].g,percentage);
+		colors[0,2].b = ease(colors[0,0].b,colors[0,1].b,percentage);
+		colors[0,2].a = ease(colors[0,0].a,colors[0,1].a,percentage);
+		
+		//apply:
+		tweenArguments["onupdateparams"]=colors[0,2];
+		
+		//dial in:
+		if(percentage==1){
+			tweenArguments["onupdateparams"]=colors[0,1];
+		}
+	}	
+		
+	void ApplyVector3Targets(){
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:
+		tweenArguments["onupdateparams"]=vector3s[2];
+		
+		//dial in:
+		if(percentage==1){
+			tweenArguments["onupdateparams"]=vector3s[1];
+		}
+	}		
+	
+	void ApplyVector2Targets(){
+		//calculate:
+		vector2s[2].x = ease(vector2s[0].x,vector2s[1].x,percentage);
+		vector2s[2].y = ease(vector2s[0].y,vector2s[1].y,percentage);
+		
+		//apply:
+		tweenArguments["onupdateparams"]=vector2s[2];
+		
+		//dial in:
+		if(percentage==1){
+			tweenArguments["onupdateparams"]=vector2s[1];
+		}
+	}	
+	
+	void ApplyFloatTargets(){
+		//calculate:
+		floats[2] = ease(floats[0],floats[1],percentage);
+		
+		//apply:
+		tweenArguments["onupdateparams"]=floats[2];
+		
+		//dial in:
+		if(percentage==1){
+			tweenArguments["onupdateparams"]=floats[1];
+		}
+	}	
+	
+	void ApplyColorToTargets(){
+		//calculate:
+		for (int i = 0; i < colors.GetLength(0); i++) {
+			colors[i,2].r = ease(colors[i,0].r,colors[i,1].r,percentage);
+			colors[i,2].g = ease(colors[i,0].g,colors[i,1].g,percentage);
+			colors[i,2].b = ease(colors[i,0].b,colors[i,1].b,percentage);
+			colors[i,2].a = ease(colors[i,0].a,colors[i,1].a,percentage);
+		}
+		/*
+		colors[2].r = ease(colors[0].r,colors[1].r,percentage);
+		colors[2].g = ease(colors[0].g,colors[1].g,percentage);
+		colors[2].b = ease(colors[0].b,colors[1].b,percentage);
+		colors[2].a = ease(colors[0].a,colors[1].a,percentage);
+		*/
+		
+		//apply:
+		if(GetComponent<GUITexture>()){
+			//guiTexture.color=colors[2];
+			GetComponent<GUITexture>().color=colors[0,2];
+		}else if(GetComponent<GUIText>()){
+			//guiText.material.color=colors[2];
+			GetComponent<GUIText>().material.color=colors[0,2];
+		}else if(GetComponent<Renderer>()){
+			//renderer.material.color=colors[2];
+			for (int i = 0; i < colors.GetLength(0); i++) {
+				GetComponent<Renderer>().materials[i].SetColor(namedcolorvalue.ToString(),colors[i,2]);
+			}
+		}else if(GetComponent<Light>()){
+			//light.color=colors[2];	
+			GetComponent<Light>().color=colors[0,2];
+		}
+		
+		//dial in:
+		if(percentage==1){
+			if(GetComponent<GUITexture>()){
+				//guiTexture.color=colors[1];
+				GetComponent<GUITexture>().color=colors[0,1];
+			}else if(GetComponent<GUIText>()){
+				//guiText.material.color=colors[1];
+				GetComponent<GUIText>().material.color=colors[0,1];
+			}else if(GetComponent<Renderer>()){
+				//renderer.material.color=colors[1];	
+				for (int i = 0; i < colors.GetLength(0); i++) {
+					GetComponent<Renderer>().materials[i].SetColor(namedcolorvalue.ToString(),colors[i,1]);
+				}
+			}else if(GetComponent<Light>()){
+				//light.color=colors[1];	
+				GetComponent<Light>().color=colors[0,1];
+			}			
+		}
+	}	
+	
+	void ApplyAudioToTargets(){
+		//calculate:
+		vector2s[2].x = ease(vector2s[0].x,vector2s[1].x,percentage);
+		vector2s[2].y = ease(vector2s[0].y,vector2s[1].y,percentage);
+		
+		//apply:
+		audioSource.volume=vector2s[2].x;
+		audioSource.pitch=vector2s[2].y;
+		
+		//dial in:
+		if(percentage==1){
+			audioSource.volume=vector2s[1].x;
+			audioSource.pitch=vector2s[1].y;	
+		}
+	}	
+	
+	void ApplyStabTargets(){
+		//unnecessary but here just in case
+	}
+	
+	void ApplyMoveToPathTargets(){
+		preUpdate = thisTransform.position;
+		float t = ease(0,1,percentage);
+		float lookAheadAmount;
+		
+		//clamp easing equation results as "back" will fail since overshoots aren't handled in the Catmull-Rom interpolation:
+		if(isLocal){
+			thisTransform.localPosition=path.Interp(Mathf.Clamp(t,0,1));	
+		}else{
+			thisTransform.position=path.Interp(Mathf.Clamp(t,0,1));	
+		}
+		
+		//handle orient to path request:
+		if(tweenArguments.Contains("orienttopath") && (bool)tweenArguments["orienttopath"]){
+			
+			//plot a point slightly ahead in the interpolation by pushing the percentage forward using the default lookahead value:
+			float tLook;
+			if(tweenArguments.Contains("lookahead")){
+				lookAheadAmount = (float)tweenArguments["lookahead"];
+			}else{
+				lookAheadAmount = Defaults.lookAhead;
+			}
+			//tLook = ease(0,1,percentage+lookAheadAmount);			
+			tLook = ease(0,1, Mathf.Min(1f, percentage+lookAheadAmount)); 
+			
+			//locate new leading point with a clamp as stated above:
+			//Vector3 lookDistance = path.Interp(Mathf.Clamp(tLook,0,1)) - transform.position;
+			tweenArguments["looktarget"] = path.Interp(Mathf.Clamp(tLook,0,1));
+		}
+		
+		//need physics?
+		postUpdate=thisTransform.position;
+		if(physics){
+			thisTransform.position=preUpdate;
+			GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}
+	
+	void ApplyMoveToTargets(){
+		//record current:
+		preUpdate=thisTransform.position;
+			
+		
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:	
+		if (isLocal) {
+			thisTransform.localPosition=vector3s[2];
+		}else{
+			thisTransform.position=vector3s[2];
+		}
+			
+		//dial in:
+		if(percentage==1){
+			if (isLocal) {
+				thisTransform.localPosition=vector3s[1];		
+			}else{
+				thisTransform.position=vector3s[1];
+			}
+		}
+			
+		//need physics?
+		postUpdate=thisTransform.position;
+		if(physics){
+			thisTransform.position=preUpdate;
+			GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}	
+	
+	void ApplyMoveByTargets(){	
+		preUpdate = thisTransform.position;
+		
+		//reset rotation to prevent look interferences as object rotates and attempts to move with translate and record current rotation
+		Vector3 currentRotation = new Vector3();
+		
+		if(tweenArguments.Contains("looktarget")){
+			currentRotation = thisTransform.eulerAngles;
+			thisTransform.eulerAngles = vector3s[4];	
+		}
+		
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+				
+		//apply:
+		thisTransform.Translate(vector3s[2]-vector3s[3],space);
+		
+		//record:
+		vector3s[3]=vector3s[2];
+		
+		//reset rotation:
+		if(tweenArguments.Contains("looktarget")){
+			thisTransform.eulerAngles = currentRotation;	
+		}
+				
+		/*
+		//dial in:
+		if(percentage==1){	
+			transform.position=vector3s[5];
+		}
+		*/
+		
+		//need physics?
+		postUpdate=thisTransform.position;
+		if(physics){
+			thisTransform.position=preUpdate;
+			GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}	
+	
+	void ApplyScaleToTargets(){
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:
+		thisTransform.localScale=vector3s[2];	
+		
+		//dial in:
+		if(percentage==1){
+			thisTransform.localScale=vector3s[1];
+		}
+	}
+	
+	void ApplyLookToTargets(){
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:
+		if (isLocal) {
+			thisTransform.localRotation = Quaternion.Euler(vector3s[2]);
+		}else{
+			thisTransform.rotation = Quaternion.Euler(vector3s[2]);
+		};	
+	}	
+	
+	void ApplyRotateToTargets(){
+		preUpdate=thisTransform.eulerAngles;
+		
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:
+		if (isLocal) {
+			thisTransform.localRotation = Quaternion.Euler(vector3s[2]);
+		}else{
+			thisTransform.rotation = Quaternion.Euler(vector3s[2]);
+		};	
+		
+		//dial in:
+		if(percentage==1){
+			if (isLocal) {
+				thisTransform.localRotation = Quaternion.Euler(vector3s[1]);
+			}else{
+				thisTransform.rotation = Quaternion.Euler(vector3s[1]);
+			};
+		}
+		
+		//need physics?
+		postUpdate=thisTransform.eulerAngles;
+		if(physics){
+			thisTransform.eulerAngles=preUpdate;
+			GetComponent<Rigidbody>().MoveRotation(Quaternion.Euler(postUpdate));
+		}
+	}
+	
+	void ApplyRotateAddTargets(){
+		preUpdate = thisTransform.eulerAngles;
+		
+		//calculate:
+		vector3s[2].x = ease(vector3s[0].x,vector3s[1].x,percentage);
+		vector3s[2].y = ease(vector3s[0].y,vector3s[1].y,percentage);
+		vector3s[2].z = ease(vector3s[0].z,vector3s[1].z,percentage);
+		
+		//apply:
+		thisTransform.Rotate(vector3s[2]-vector3s[3],space);
+
+		//record:
+		vector3s[3]=vector3s[2];	
+		
+		//need physics?
+		postUpdate=thisTransform.eulerAngles;
+		if(physics){
+			thisTransform.eulerAngles=preUpdate;
+			GetComponent<Rigidbody>().MoveRotation(Quaternion.Euler(postUpdate));
+		}		
+	}	
+	
+	void ApplyShakePositionTargets(){
+		//preUpdate = transform.position;
+		if (isLocal) {
+			preUpdate = thisTransform.localPosition;
+		}else{
+			preUpdate = thisTransform.position;
+		}
+		
+		//reset rotation to prevent look interferences as object rotates and attempts to move with translate and record current rotation
+		Vector3 currentRotation = new Vector3();
+		
+		if(tweenArguments.Contains("looktarget")){
+			currentRotation = thisTransform.eulerAngles;
+			thisTransform.eulerAngles = vector3s[3];	
+		}
+		
+		//impact:
+		if (percentage==0) {
+			thisTransform.Translate(vector3s[1],space);
+		}
+		
+		//transform.position=vector3s[0];
+		//reset:
+		if (isLocal) {
+			thisTransform.localPosition=vector3s[0];
+		}else{
+			thisTransform.position=vector3s[0];
+		}
+		
+		//generate:
+		float diminishingControl = 1-percentage;
+		vector3s[2].x= UnityEngine.Random.Range(-vector3s[1].x*diminishingControl, vector3s[1].x*diminishingControl);
+		vector3s[2].y= UnityEngine.Random.Range(-vector3s[1].y*diminishingControl, vector3s[1].y*diminishingControl);
+		vector3s[2].z= UnityEngine.Random.Range(-vector3s[1].z*diminishingControl, vector3s[1].z*diminishingControl);
+
+		//apply:	
+		//transform.Translate(vector3s[2],space);	
+		if (isLocal) {
+			thisTransform.localPosition+=vector3s[2];
+		}else{
+			thisTransform.position+=vector3s[2];
+		}
+		
+		//reset rotation:
+		if(tweenArguments.Contains("looktarget")){
+			thisTransform.eulerAngles = currentRotation;	
+		}	
+		
+		//need physics?
+		postUpdate=thisTransform.position;
+		if(physics){
+			thisTransform.position=preUpdate;
+			GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}	
+	
+	void ApplyShakeScaleTargets(){
+		//impact:
+		if (percentage==0) {
+			thisTransform.localScale=vector3s[1];
+		}
+		
+		//reset:
+		thisTransform.localScale=vector3s[0];
+		
+		//generate:
+		float diminishingControl = 1-percentage;
+		vector3s[2].x= UnityEngine.Random.Range(-vector3s[1].x*diminishingControl, vector3s[1].x*diminishingControl);
+		vector3s[2].y= UnityEngine.Random.Range(-vector3s[1].y*diminishingControl, vector3s[1].y*diminishingControl);
+		vector3s[2].z= UnityEngine.Random.Range(-vector3s[1].z*diminishingControl, vector3s[1].z*diminishingControl);
+
+		//apply:
+		thisTransform.localScale+=vector3s[2];
+	}		
+	
+	void ApplyShakeRotationTargets(){
+		preUpdate = thisTransform.eulerAngles;
+		
+		//impact:
+		if (percentage==0) {
+			thisTransform.Rotate(vector3s[1],space);
+		}
+		
+		//reset:
+		thisTransform.eulerAngles=vector3s[0];
+		
+		//generate:
+		float diminishingControl = 1-percentage;
+		vector3s[2].x= UnityEngine.Random.Range(-vector3s[1].x*diminishingControl, vector3s[1].x*diminishingControl);
+		vector3s[2].y= UnityEngine.Random.Range(-vector3s[1].y*diminishingControl, vector3s[1].y*diminishingControl);
+		vector3s[2].z= UnityEngine.Random.Range(-vector3s[1].z*diminishingControl, vector3s[1].z*diminishingControl);
+
+		//apply:
+		thisTransform.Rotate(vector3s[2],space);
+		
+		//need physics?
+		postUpdate=thisTransform.eulerAngles;
+		if(physics){
+			thisTransform.eulerAngles=preUpdate;
+			GetComponent<Rigidbody>().MoveRotation(Quaternion.Euler(postUpdate));
+		}
+	}		
+	
+	void ApplyPunchPositionTargets(){
+		preUpdate = thisTransform.position;
+		
+		//reset rotation to prevent look interferences as object rotates and attempts to move with translate and record current rotation
+		Vector3 currentRotation = new Vector3();
+		
+		if(tweenArguments.Contains("looktarget")){
+			currentRotation = thisTransform.eulerAngles;
+			thisTransform.eulerAngles = vector3s[4];	
+		}
+		
+		//calculate:
+		if(vector3s[1].x>0){
+			vector3s[2].x = punch(vector3s[1].x,percentage);
+		}else if(vector3s[1].x<0){
+			vector3s[2].x=-punch(Mathf.Abs(vector3s[1].x),percentage); 
+		}
+		if(vector3s[1].y>0){
+			vector3s[2].y=punch(vector3s[1].y,percentage);
+		}else if(vector3s[1].y<0){
+			vector3s[2].y=-punch(Mathf.Abs(vector3s[1].y),percentage); 
+		}
+		if(vector3s[1].z>0){
+			vector3s[2].z=punch(vector3s[1].z,percentage);
+		}else if(vector3s[1].z<0){
+			vector3s[2].z=-punch(Mathf.Abs(vector3s[1].z),percentage); 
+		}
+		
+		//apply:
+		thisTransform.Translate(vector3s[2]-vector3s[3],space);
+
+		//record:
+		vector3s[3]=vector3s[2];
+		
+		//reset rotation:
+		if(tweenArguments.Contains("looktarget")){
+			thisTransform.eulerAngles = currentRotation;	
+		}
+		
+		//dial in:
+		/*
+		if(percentage==1){	
+			transform.position=vector3s[0];
+		}
+		*/
+		
+		//need physics?
+		postUpdate=thisTransform.position;
+		if(physics){
+			thisTransform.position=preUpdate;
+			GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}		
+	
+	void ApplyPunchRotationTargets(){
+		preUpdate = thisTransform.eulerAngles;
+		
+		//calculate:
+		if(vector3s[1].x>0){
+			vector3s[2].x = punch(vector3s[1].x,percentage);
+		}else if(vector3s[1].x<0){
+			vector3s[2].x=-punch(Mathf.Abs(vector3s[1].x),percentage); 
+		}
+		if(vector3s[1].y>0){
+			vector3s[2].y=punch(vector3s[1].y,percentage);
+		}else if(vector3s[1].y<0){
+			vector3s[2].y=-punch(Mathf.Abs(vector3s[1].y),percentage); 
+		}
+		if(vector3s[1].z>0){
+			vector3s[2].z=punch(vector3s[1].z,percentage);
+		}else if(vector3s[1].z<0){
+			vector3s[2].z=-punch(Mathf.Abs(vector3s[1].z),percentage); 
+		}
+		
+		//apply:
+		thisTransform.Rotate(vector3s[2]-vector3s[3],space);
+
+		//record:
+		vector3s[3]=vector3s[2];
+		
+		//dial in:
+		/*
+		if(percentage==1){	
+			transform.eulerAngles=vector3s[0];
+		}
+		*/
+		
+		//need physics?
+		postUpdate=thisTransform.eulerAngles;
+		if(physics){
+			thisTransform.eulerAngles=preUpdate;
+			GetComponent<Rigidbody>().MoveRotation(Quaternion.Euler(postUpdate));
+		}
+	}	
+	
+	void ApplyPunchScaleTargets(){
+		//calculate:
+		if(vector3s[1].x>0){
+			vector3s[2].x = punch(vector3s[1].x,percentage);
+		}else if(vector3s[1].x<0){
+			vector3s[2].x=-punch(Mathf.Abs(vector3s[1].x),percentage); 
+		}
+		if(vector3s[1].y>0){
+			vector3s[2].y=punch(vector3s[1].y,percentage);
+		}else if(vector3s[1].y<0){
+			vector3s[2].y=-punch(Mathf.Abs(vector3s[1].y),percentage); 
+		}
+		if(vector3s[1].z>0){
+			vector3s[2].z=punch(vector3s[1].z,percentage);
+		}else if(vector3s[1].z<0){
+			vector3s[2].z=-punch(Mathf.Abs(vector3s[1].z),percentage); 
+		}
+		
+		//apply:
+		thisTransform.localScale=vector3s[0]+vector3s[2];
+		
+		//dial in:
+		/*
+		if(percentage==1){	
+			transform.localScale=vector3s[0];
+		}
+		*/
+	}		
+	
+	#endregion	
+	
+	#region #5 Tween Steps
+	
+	IEnumerator TweenDelay(){
+		delayStarted = Time.time;
+		yield return new WaitForSeconds (delay);
+		if(wasPaused){
+			wasPaused=false;
+			TweenStart();	
+		}
+	}	
+	
+	void TweenStart(){		
+		CallBack("onstart");
+		
+		if(!loop){//only if this is not a loop
+			ConflictCheck();
+			GenerateTargets();
+		}
+				
+		//run stab:
+		if(type == "stab"){
+			audioSource.PlayOneShot(audioSource.clip);
+		}
+		
+		//toggle isKinematic for iTweens that may interfere with physics:
+		if (type == "move" || type=="scale" || type=="rotate" || type=="punch" || type=="shake" || type=="curve" || type=="look") {
+			EnableKinematic();
+		}
+		
+		isRunning = true;
+	}
+	
+	IEnumerator TweenRestart(){
+		if(delay > 0){
+			delayStarted = Time.time;
+			yield return new WaitForSeconds (delay);
+		}
+		loop=true;
+		TweenStart();
+	}	
+	
+	void TweenUpdate(){
+		apply();
+		CallBack("onupdate");
+		UpdatePercentage();		
+	}
+			
+	void TweenComplete(){
+		isRunning=false;
+		
+		//dial in percentage to 1 or 0 for final run:
+		if(percentage>.5f){
+			percentage=1f;
+		}else{
+			percentage=0;	
+		}
+		
+		//apply dial in and final run:
+		apply();
+		if(type == "value"){
+			CallBack("onupdate"); //CallBack run for ValueTo since it only calculates and applies in the update callback
+		}
+		
+		//loop or dispose?
+		if(loopType==LoopType.none){
+			Dispose();
+		}else{
+			TweenLoop();
+		}
+		
+		CallBack("oncomplete");
+	}
+	
+	void TweenLoop(){
+		DisableKinematic(); //give physics control again
+		switch(loopType){
+			case LoopType.loop:
+				//rewind:
+				percentage=0;
+				runningTime=0;
+				apply();
+				
+				//replay:
+				StartCoroutine("TweenRestart");
+				break;
+			case LoopType.pingPong:
+				reverse = !reverse;
+				runningTime=0;
+			
+				//replay:
+				StartCoroutine("TweenRestart");
+				break;
+		}
+	}	
+	
+	#endregion
+	
+	#region #6 Update Callable
+	
+	/// <summary>
+	/// Returns a Rect that is eased between a current and target value by the supplied speed.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="Rect"/
+	/// </returns>
+	/// <param name='currentValue'>
+	/// A <see cref="Rect"/> the starting or initial value
+	/// </param>
+	/// <param name='targetValue'>
+	/// A <see cref="Rect"/> the target value that the current value will be eased to.
+	/// </param>
+	/// <param name='speed'>
+	/// A <see cref="System.Single"/> to be used as rate of speed (larger number equals faster animation)
+	/// </param>
+	public static Rect RectUpdate(Rect currentValue, Rect targetValue, float speed){
+		Rect diff = new Rect(FloatUpdate(currentValue.x, targetValue.x, speed), FloatUpdate(currentValue.y, targetValue.y, speed), FloatUpdate(currentValue.width, targetValue.width, speed), FloatUpdate(currentValue.height, targetValue.height, speed));
+		return (diff);
+	}
+	
+	/// <summary>
+	/// Returns a Vector3 that is eased between a current and target value by the supplied speed.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="Vector3"/>
+	/// </returns>
+	/// <param name='currentValue'>
+	/// A <see cref="Vector3"/> the starting or initial value
+	/// </param>
+	/// <param name='targetValue'>
+	/// A <see cref="Vector3"/> the target value that the current value will be eased to.
+	/// </param>
+	/// <param name='speed'>
+	/// A <see cref="System.Single"/> to be used as rate of speed (larger number equals faster animation)
+	/// </param>
+	public static Vector3 Vector3Update(Vector3 currentValue, Vector3 targetValue, float speed){
+		Vector3 diff = targetValue - currentValue;
+		currentValue += (diff * speed) * Time.deltaTime;
+		return (currentValue);
+	}
+	
+	/// <summary>
+	/// Returns a Vector2 that is eased between a current and target value by the supplied speed.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="Vector2"/>
+	/// </returns>
+	/// <param name='currentValue'>
+	/// A <see cref="Vector2"/> the starting or initial value
+	/// </param>
+	/// <param name='targetValue'>
+	/// A <see cref="Vector2"/> the target value that the current value will be eased to.
+	/// </param>
+	/// <param name='speed'>
+	/// A <see cref="System.Single"/> to be used as rate of speed (larger number equals faster animation)
+	/// </param>
+	public static Vector2 Vector2Update(Vector2 currentValue, Vector2 targetValue, float speed){
+		Vector2 diff = targetValue - currentValue;
+		currentValue += (diff * speed) * Time.deltaTime;
+		return (currentValue);
+	}
+	
+	/// <summary>
+	/// Returns a float that is eased between a current and target value by the supplied speed.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="System.Single"/>
+	/// </returns>
+	/// <param name='currentValue'>
+	/// A <see cref="System.Single"/> the starting or initial value
+	/// </param>
+	/// <param name='targetValue'>
+	/// A <see cref="System.Single"/> the target value that the current value will be eased to.
+	/// </param>
+	/// <param name='speed'>
+	/// A <see cref="System.Single"/> to be used as rate of speed (larger number equals faster animation)
+	/// </param>
+	public static float FloatUpdate(float currentValue, float targetValue, float speed){
+		float diff = targetValue - currentValue;
+		currentValue += (diff * speed) * Time.deltaTime;
+		return (currentValue);
+	}
+	
+	/// <summary>
+	/// Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void FadeUpdate(GameObject target, Hashtable args){
+		args["a"]=args["alpha"];
+		ColorUpdate(target,args);
+	}
+	
+	/// <summary>
+	/// Similar to FadeTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="alpha">
+	/// A <see cref="System.Single"/> for the final alpha value of the animation.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void FadeUpdate(GameObject target, float alpha, float time){
+		FadeUpdate(target,Hash("alpha",alpha,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="r">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color red.
+	/// </param>
+	/// <param name="g">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="b">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the color green.
+	/// </param>
+	/// <param name="a">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="namedcolorvalue">
+	/// A <see cref="NamedColorValue"/> or <see cref="System.String"/> for the individual setting of the alpha.
+	/// </param> 
+	/// <param name="includechildren">
+	/// A <see cref="System.Boolean"/> for whether or not to include children of this GameObject. True by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ColorUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		float time;
+		Color[] colors = new Color[4];
+		
+		//handle children:
+		if(!args.Contains("includechildren") || (bool)args["includechildren"]){
+			foreach(Transform child in target.transform){
+				ColorUpdate(child.gameObject,args);
+			}
+		}		 
+		
+		//set smooth time:
+		if(args.Contains("time")){
+			time=(float)args["time"];
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+		
+		//init values:
+		if(target.GetComponent<GUITexture>()){
+			colors[0] = colors[1] = target.GetComponent<GUITexture>().color;
+		}else if(target.GetComponent<GUIText>()){
+			colors[0] = colors[1] = target.GetComponent<GUIText>().material.color;
+		}else if(target.GetComponent<Renderer>()){
+			colors[0] = colors[1] = target.GetComponent<Renderer>().material.color;
+		}else if(target.GetComponent<Light>()){
+			colors[0] = colors[1] = target.GetComponent<Light>().color;	
+		}		
+		
+		//to values:
+		if (args.Contains("color")) {
+			colors[1]=(Color)args["color"];
+		}else{
+			if (args.Contains("r")) {
+				colors[1].r=(float)args["r"];
+			}
+			if (args.Contains("g")) {
+				colors[1].g=(float)args["g"];
+			}
+			if (args.Contains("b")) {
+				colors[1].b=(float)args["b"];
+			}
+			if (args.Contains("a")) {
+				colors[1].a=(float)args["a"];
+			}
+		}
+		
+		//calculate:
+		colors[3].r=Mathf.SmoothDamp(colors[0].r,colors[1].r,ref colors[2].r,time);
+		colors[3].g=Mathf.SmoothDamp(colors[0].g,colors[1].g,ref colors[2].g,time);
+		colors[3].b=Mathf.SmoothDamp(colors[0].b,colors[1].b,ref colors[2].b,time);
+		colors[3].a=Mathf.SmoothDamp(colors[0].a,colors[1].a,ref colors[2].a,time);
+				
+		//apply:
+		if(target.GetComponent<GUITexture>()){
+			target.GetComponent<GUITexture>().color=colors[3];
+		}else if(target.GetComponent<GUIText>()){
+			target.GetComponent<GUIText>().material.color=colors[3];
+		}else if(target.GetComponent<Renderer>()){
+			target.GetComponent<Renderer>().material.color=colors[3];
+		}else if(target.GetComponent<Light>()){
+			target.GetComponent<Light>().color=colors[3];	
+		}
+	}	
+	
+	/// <summary>
+	/// Similar to ColorTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/> to change the GameObject's color to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ColorUpdate(GameObject target, Color color, float time){
+		ColorUpdate(target,Hash("color",color,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="audiosource">
+	/// A <see cref="AudioSource"/> for which AudioSource to use.
+	/// </param> 
+	/// <param name="volume">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target level of volume.
+	/// </param>
+	/// <param name="pitch">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the target pitch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void AudioUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		AudioSource audioSource;
+		float time;
+		Vector2[] vector2s = new Vector2[4];
+			
+		//set smooth time:
+		if(args.Contains("time")){
+			time=(float)args["time"];
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+
+		//set audioSource:
+		if(args.Contains("audiosource")){
+			audioSource=(AudioSource)args["audiosource"];
+		}else{
+			if(target.GetComponent<AudioSource>()){
+				audioSource=target.GetComponent<AudioSource>();
+			}else{
+				//throw error if no AudioSource is available:
+				Debug.LogError("iTween Error: AudioUpdate requires an AudioSource.");
+				return;
+			}
+		}		
+		
+		//from values:
+		vector2s[0] = vector2s[1] = new Vector2(audioSource.volume,audioSource.pitch);
+		
+		//set to:
+		if(args.Contains("volume")){
+			vector2s[1].x=(float)args["volume"];
+		}
+		if(args.Contains("pitch")){
+			vector2s[1].y=(float)args["pitch"];
+		}
+		
+		//calculate:
+		vector2s[3].x=Mathf.SmoothDampAngle(vector2s[0].x,vector2s[1].x,ref vector2s[2].x,time);
+		vector2s[3].y=Mathf.SmoothDampAngle(vector2s[0].y,vector2s[1].y,ref vector2s[2].y,time);
+	
+		//apply:
+		audioSource.volume=vector2s[3].x;
+		audioSource.pitch=vector2s[3].y;
+	}
+	
+	/// <summary>
+	/// Similar to AudioTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="volume">
+	/// A <see cref="System.Single"/> for the target level of volume.
+	/// </param>
+	/// <param name="pitch">
+	/// A <see cref="System.Single"/> for the target pitch.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void AudioUpdate(GameObject target, float volume, float pitch, float time){
+		AudioUpdate(target,Hash("volume",volume,"pitch",pitch,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="rotation">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the target Euler angles in degrees to rotate to.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param> 
+	public static void RotateUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		bool isLocal;
+		float time;
+		Vector3[] vector3s = new Vector3[4];
+		Vector3 preUpdate = target.transform.eulerAngles;
+		
+		//set smooth time:
+		if(args.Contains("time")){
+			time=(float)args["time"];
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+		
+		//set isLocal:
+		if(args.Contains("islocal")){
+			isLocal = (bool)args["islocal"];
+		}else{
+			isLocal = Defaults.isLocal;	
+		}
+		
+		//from values:
+		if(isLocal){
+			vector3s[0] = target.transform.localEulerAngles;
+		}else{
+			vector3s[0] = target.transform.eulerAngles;	
+		}
+		
+		//set to:
+		if(args.Contains("rotation")){
+			if (args["rotation"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)args["rotation"];
+				vector3s[1]=trans.eulerAngles;
+			}else if(args["rotation"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)args["rotation"];
+			}	
+		}
+				
+		//calculate:
+		vector3s[3].x=Mathf.SmoothDampAngle(vector3s[0].x,vector3s[1].x,ref vector3s[2].x,time);
+		vector3s[3].y=Mathf.SmoothDampAngle(vector3s[0].y,vector3s[1].y,ref vector3s[2].y,time);
+		vector3s[3].z=Mathf.SmoothDampAngle(vector3s[0].z,vector3s[1].z,ref vector3s[2].z,time);
+	
+		//apply:
+		if(isLocal){
+			target.transform.localEulerAngles=vector3s[3];
+		}else{
+			target.transform.eulerAngles=vector3s[3];
+		}
+		
+		//need physics?
+		if(target.GetComponent<Rigidbody>() != null){
+			Vector3 postUpdate=target.transform.eulerAngles;
+			target.transform.eulerAngles=preUpdate;
+			target.GetComponent<Rigidbody>().MoveRotation(Quaternion.Euler(postUpdate));
+		}
+	}
+		
+	/// <summary>
+	/// Similar to RotateTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="rotation">
+	/// A <see cref="Vector3"/> for the target Euler angles in degrees to rotate to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void RotateUpdate(GameObject target, Vector3 rotation, float time){
+		RotateUpdate(target,Hash("rotation",rotation,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options.  Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="scale">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param> 
+	public static void ScaleUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		float time;
+		Vector3[] vector3s = new Vector3[4];
+			
+		//set smooth time:
+		if(args.Contains("time")){
+			time=(float)args["time"];
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+		
+		//init values:
+		vector3s[0] = vector3s[1] = target.transform.localScale;
+		
+		//to values:
+		if (args.Contains("scale")) {
+			if (args["scale"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)args["scale"];
+				vector3s[1]=trans.localScale;
+			}else if(args["scale"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)args["scale"];
+			}				
+		}else{
+			if (args.Contains("x")) {
+				vector3s[1].x=(float)args["x"];
+			}
+			if (args.Contains("y")) {
+				vector3s[1].y=(float)args["y"];
+			}
+			if (args.Contains("z")) {
+				vector3s[1].z=(float)args["z"];
+			}
+		}
+		
+		//calculate:
+		vector3s[3].x=Mathf.SmoothDamp(vector3s[0].x,vector3s[1].x,ref vector3s[2].x,time);
+		vector3s[3].y=Mathf.SmoothDamp(vector3s[0].y,vector3s[1].y,ref vector3s[2].y,time);
+		vector3s[3].z=Mathf.SmoothDamp(vector3s[0].z,vector3s[1].z,ref vector3s[2].z,time);
+				
+		//apply:
+		target.transform.localScale=vector3s[3];		
+	}	
+	
+	/// <summary>
+	/// Similar to ScaleTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options.  Does not utilize an EaseType.
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="scale">
+	/// A <see cref="Vector3"/> for the final scale.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void ScaleUpdate(GameObject target, Vector3 scale, float time){
+		ScaleUpdate(target,Hash("scale",scale,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="position">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a point in space the GameObject will animate to.
+	/// </param>
+	/// <param name="x">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the x axis.
+	/// </param>
+	/// <param name="y">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the y axis.
+	/// </param>
+	/// <param name="z">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the individual setting of the z axis.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param> 
+	/// <param name="islocal">
+	/// A <see cref="System.Boolean"/> for whether to animate in world space or relative to the parent. False by default.
+	/// </param>
+	/// <param name="orienttopath">
+	/// A <see cref="System.Boolean"/> for whether or not the GameObject will orient to its direction of travel.  False by default.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> or A <see cref="Transform"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="looktime">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the object will take to look at either the "looktarget" or "orienttopath".
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	public static void MoveUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		float time;
+		Vector3[] vector3s = new Vector3[4];
+		bool isLocal;
+		Vector3 preUpdate = target.transform.position;
+			
+		//set smooth time:
+		if(args.Contains("time")){
+			time=(float)args["time"];
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+			
+		//set isLocal:
+		if(args.Contains("islocal")){
+			isLocal = (bool)args["islocal"];
+		}else{
+			isLocal = Defaults.isLocal;	
+		}
+		 
+		//init values:
+		if(isLocal){
+			vector3s[0] = vector3s[1] = target.transform.localPosition;
+		}else{
+			vector3s[0] = vector3s[1] = target.transform.position;	
+		}
+		
+		//to values:
+		if (args.Contains("position")) {
+			if (args["position"].GetType() == typeof(Transform)){
+				Transform trans = (Transform)args["position"];
+				vector3s[1]=trans.position;
+			}else if(args["position"].GetType() == typeof(Vector3)){
+				vector3s[1]=(Vector3)args["position"];
+			}			
+		}else{
+			if (args.Contains("x")) {
+				vector3s[1].x=(float)args["x"];
+			}
+			if (args.Contains("y")) {
+				vector3s[1].y=(float)args["y"];
+			}
+			if (args.Contains("z")) {
+				vector3s[1].z=(float)args["z"];
+			}
+		}
+		
+		//calculate:
+		vector3s[3].x=Mathf.SmoothDamp(vector3s[0].x,vector3s[1].x,ref vector3s[2].x,time);
+		vector3s[3].y=Mathf.SmoothDamp(vector3s[0].y,vector3s[1].y,ref vector3s[2].y,time);
+		vector3s[3].z=Mathf.SmoothDamp(vector3s[0].z,vector3s[1].z,ref vector3s[2].z,time);
+			
+		//handle orient to path:
+		if(args.Contains("orienttopath") && (bool)args["orienttopath"]){
+			args["looktarget"] = vector3s[3];
+		}
+		
+		//look applications:
+		if(args.Contains("looktarget")){
+			iTween.LookUpdate(target,args);
+		}
+		
+		//apply:
+		if(isLocal){
+			target.transform.localPosition = vector3s[3];			
+		}else{
+			target.transform.position=vector3s[3];	
+		}	
+		
+		//need physics?
+		if(target.GetComponent<Rigidbody>() != null){
+			Vector3 postUpdate=target.transform.position;
+			target.transform.position=preUpdate;
+			target.GetComponent<Rigidbody>().MovePosition(postUpdate);
+		}
+	}
+
+	/// <summary>
+	/// Similar to MoveTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with MINIMUM customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="position">
+	/// A <see cref="Vector3"/> for a point in space the GameObject will animate to.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void MoveUpdate(GameObject target, Vector3 position, float time){
+		MoveUpdate(target,Hash("position",position,"time",time));
+	}
+	
+	/// <summary>
+	/// Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="looktarget">
+	/// A <see cref="Transform"/> or <see cref="Vector3"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="axis">
+	/// A <see cref="System.String"/>. Restricts rotation to the supplied axis only.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> or <see cref="System.Double"/> for the time in seconds the animation will take to complete.
+	/// </param> 
+	public static void LookUpdate(GameObject target, Hashtable args){
+		CleanArgs(args);
+		
+		float time;
+		Vector3[] vector3s = new Vector3[5];
+		
+		//set smooth time:
+		if(args.Contains("looktime")){
+			time=(float)args["looktime"];
+			time*=Defaults.updateTimePercentage;
+		}else if(args.Contains("time")){
+			time=(float)args["time"]*.15f;
+			time*=Defaults.updateTimePercentage;
+		}else{
+			time=Defaults.updateTime;
+		}
+		
+		//from values:
+		vector3s[0] = target.transform.eulerAngles;
+		
+		//set look:
+		if(args.Contains("looktarget")){
+			if (args["looktarget"].GetType() == typeof(Transform)) {
+				//target.transform.LookAt((Transform)args["looktarget"]);
+				target.transform.LookAt((Transform)args["looktarget"], (Vector3?)args["up"] ?? Defaults.up);
+			}else if(args["looktarget"].GetType() == typeof(Vector3)){
+				//target.transform.LookAt((Vector3)args["looktarget"]);
+				target.transform.LookAt((Vector3)args["looktarget"], (Vector3?)args["up"] ?? Defaults.up);
+			}
+		}else{
+			Debug.LogError("iTween Error: LookUpdate needs a 'looktarget' property!");
+			return;
+		}
+		
+		//to values and reset look:
+		vector3s[1]=target.transform.eulerAngles;
+		target.transform.eulerAngles=vector3s[0];
+		
+		//calculate:
+		vector3s[3].x=Mathf.SmoothDampAngle(vector3s[0].x,vector3s[1].x,ref vector3s[2].x,time);
+		vector3s[3].y=Mathf.SmoothDampAngle(vector3s[0].y,vector3s[1].y,ref vector3s[2].y,time);
+		vector3s[3].z=Mathf.SmoothDampAngle(vector3s[0].z,vector3s[1].z,ref vector3s[2].z,time);
+	
+		//apply:
+		target.transform.eulerAngles=vector3s[3];
+		
+		//axis restriction:
+		if(args.Contains("axis")){
+			vector3s[4]=target.transform.eulerAngles;
+			switch((string)args["axis"]){
+				case "x":
+					vector3s[4].y=vector3s[0].y;
+					vector3s[4].z=vector3s[0].z;
+				break;
+				case "y":
+					vector3s[4].x=vector3s[0].x;
+					vector3s[4].z=vector3s[0].z;
+				break;
+				case "z":
+					vector3s[4].x=vector3s[0].x;
+					vector3s[4].y=vector3s[0].y;
+				break;
+			}
+			
+			//apply axis restriction:
+			target.transform.eulerAngles=vector3s[4];
+		}	
+	}
+	
+	/// <summary>
+	/// Similar to LookTo but incredibly less expensive for usage inside the Update function or similar looping situations involving a "live" set of changing values with FULL customization options. Does not utilize an EaseType. 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/> to be the target of the animation.
+	/// </param>
+	/// <param name="looktarget">
+	/// A <see cref="Vector3"/> for a target the GameObject will look at.
+	/// </param>
+	/// <param name="time">
+	/// A <see cref="System.Single"/> for the time in seconds the animation will take to complete.
+	/// </param>
+	public static void LookUpdate(GameObject target, Vector3 looktarget, float time){
+		LookUpdate(target,Hash("looktarget",looktarget,"time",time));
+	}
+
+	#endregion
+	
+	#region #7 External Utilities
+	
+	/// <summary>
+	/// Returns the length of a curved path drawn through the provided array of Transforms.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="System.Single"/>
+	/// </returns>
+	/// <param name='path'>
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static float PathLength(Transform[] path){
+		Vector3[] suppliedPath = new Vector3[path.Length];
+		float pathLength = 0;
+		
+		//create and store path points:
+		for (int i = 0; i < path.Length; i++) {
+			suppliedPath[i]=path[i].position;
+		}
+		
+		Vector3[] vector3s = PathControlPointGenerator(suppliedPath);
+		
+		//Line Draw:
+		Vector3 prevPt = Interp(vector3s,0);
+		int SmoothAmount = path.Length*20;
+		for (int i = 1; i <= SmoothAmount; i++) {
+			float pm = (float) i / SmoothAmount;
+			Vector3 currPt = Interp(vector3s,pm);
+			pathLength += Vector3.Distance(prevPt,currPt);
+			prevPt = currPt;
+		}
+		
+		return pathLength;
+	}
+	
+	/// <summary>
+	/// Returns the length of a curved path drawn through the provided array of Vector3s.
+	/// </summary>
+	/// <returns>
+	/// The length.
+	/// </returns>
+	/// <param name='path'>
+	/// A <see cref="Vector3[]"/>
+	/// </param>
+	public static float PathLength(Vector3[] path){
+		float pathLength = 0;
+		
+		Vector3[] vector3s = PathControlPointGenerator(path);
+		
+		//Line Draw:
+		Vector3 prevPt = Interp(vector3s,0);
+		int SmoothAmount = path.Length*20;
+		for (int i = 1; i <= SmoothAmount; i++) {
+			float pm = (float) i / SmoothAmount;
+			Vector3 currPt = Interp(vector3s,pm);
+			pathLength += Vector3.Distance(prevPt,currPt);
+			prevPt = currPt;
+		}
+		
+		return pathLength;
+	}	
+	
+	/// <summary>
+	/// Creates and returns a full-screen Texture2D for use with CameraFade.
+	/// </summary>
+	/// <returns>
+	/// Texture2D
+	/// </returns>
+	/// <param name='color'>
+	/// Color
+	/// </param>
+	public static Texture2D CameraTexture(Color color){
+		Texture2D texture = new Texture2D(Screen.width,Screen.height,TextureFormat.ARGB32, false);
+		Color[] colors = new Color[Screen.width*Screen.height];
+		for (int i = 0; i < colors.Length; i++) {
+			colors[i]=color;
+		}
+		texture.SetPixels(colors);
+		texture.Apply();
+		return(texture);		
+	}
+	
+	/// <summary>
+	/// Puts a GameObject on a path at the provided percentage 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/>
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Vector3[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	public static void PutOnPath(GameObject target, Vector3[] path, float percent){
+		target.transform.position=Interp(PathControlPointGenerator(path),percent);
+	}
+	
+	/// <summary>
+	/// Puts a GameObject on a path at the provided percentage 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="Transform"/>
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Vector3[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	public static void PutOnPath(Transform target, Vector3[] path, float percent){
+		target.position=Interp(PathControlPointGenerator(path),percent);
+	}	
+	
+	/// <summary>
+	/// Puts a GameObject on a path at the provided percentage 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="GameObject"/>
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	public static void PutOnPath(GameObject target, Transform[] path, float percent){
+		//create and store path points:
+		Vector3[] suppliedPath = new Vector3[path.Length];
+		for (int i = 0; i < path.Length; i++) {
+			suppliedPath[i]=path[i].position;
+		}	
+		target.transform.position=Interp(PathControlPointGenerator(suppliedPath),percent);
+	}	
+	
+	/// <summary>
+	/// Puts a GameObject on a path at the provided percentage 
+	/// </summary>
+	/// <param name="target">
+	/// A <see cref="Transform"/>
+	/// </param>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	public static void PutOnPath(Transform target, Transform[] path, float percent){
+		//create and store path points:
+		Vector3[] suppliedPath = new Vector3[path.Length];
+		for (int i = 0; i < path.Length; i++) {
+			suppliedPath[i]=path[i].position;
+		}	
+		target.position=Interp(PathControlPointGenerator(suppliedPath),percent);
+	}		
+	
+	/// <summary>
+	/// Returns a Vector3 position on a path at the provided percentage  
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <returns>
+	/// A <see cref="Vector3"/>
+	/// </returns>
+	public static Vector3 PointOnPath(Transform[] path, float percent){
+		//create and store path points:
+		Vector3[] suppliedPath = new Vector3[path.Length];
+		for (int i = 0; i < path.Length; i++) {
+			suppliedPath[i]=path[i].position;
+		}	
+		return(Interp(PathControlPointGenerator(suppliedPath),percent));
+	}
+		
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s.
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawLine(Vector3[] line) {
+		if(line.Length>0){
+			DrawLineHelper(line,Defaults.color,"gizmos");
+		}
+	}	
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a line through the provided array of Vector3s.
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLine(Vector3[] line, Color color) {
+		if(line.Length>0){
+			DrawLineHelper(line,color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms.
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawLine(Transform[] line) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			DrawLineHelper(suppliedLine,Defaults.color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a line through the provided array of Transforms.
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLine(Transform[] line,Color color) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			
+			DrawLineHelper(suppliedLine, color,"gizmos");
+		}
+	}	
+	
+	/// <summary>
+	/// Draws a line through the provided array of Vector3s with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawLineGizmos(Vector3[] line) {
+		if(line.Length>0){
+			DrawLineHelper(line,Defaults.color,"gizmos");
+		}
+	}	
+	
+	/// <summary>
+	/// Draws a line through the provided array of Vector3s with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLineGizmos(Vector3[] line, Color color) {
+		if(line.Length>0){
+			DrawLineHelper(line,color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a line through the provided array of Transforms with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawLineGizmos(Transform[] line) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			DrawLineHelper(suppliedLine,Defaults.color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a line through the provided array of Transforms with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLineGizmos(Transform[] line,Color color) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			
+			DrawLineHelper(suppliedLine, color,"gizmos");
+		}
+	}
+
+	/// <summary>
+	/// Draws a line through the provided array of Vector3s with Handles.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawLineHandles(Vector3[] line) {
+		if(line.Length>0){
+			DrawLineHelper(line,Defaults.color,"handles");
+		}
+	}	
+	
+	/// <summary>
+	/// Draws a line through the provided array of Vector3s with Handles.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLineHandles(Vector3[] line, Color color) {
+		if(line.Length>0){
+			DrawLineHelper(line,color,"handles");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a line through the provided array of Transforms with Handles.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawLineHandles(Transform[] line) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			DrawLineHelper(suppliedLine,Defaults.color,"handles");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a line through the provided array of Transforms with Handles.DrawLine().
+	/// </summary>
+	/// <param name="line">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawLineHandles(Transform[] line,Color color) {
+		if(line.Length>0){
+			//create and store line points:
+			Vector3[] suppliedLine = new Vector3[line.Length];
+			for (int i = 0; i < line.Length; i++) {
+				suppliedLine[i]=line[i].position;
+			}
+			
+			DrawLineHelper(suppliedLine, color,"handles");
+		}
+	}	
+	
+	/// <summary>
+	/// Returns a Vector3 position on a path at the provided percentage  
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3[]"/>
+	/// </param>
+	/// <param name="percent">
+	/// A <see cref="System.Single"/>
+	/// </param>
+	/// <returns>
+	/// A <see cref="Vector3"/>
+	/// </returns>
+	public static Vector3 PointOnPath(Vector3[] path, float percent){
+		return(Interp(PathControlPointGenerator(path),percent));
+	}		
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s.
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawPath(Vector3[] path) {
+		if(path.Length>0){
+			DrawPathHelper(path,Defaults.color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Vector3s.
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPath(Vector3[] path, Color color) {
+		if(path.Length>0){
+			DrawPathHelper(path, color,"gizmos");
+		}
+	}
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms.
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawPath(Transform[] path) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath,Defaults.color,"gizmos");	
+		}
+	}		
+	
+	/// <summary>
+	/// When called from an OnDrawGizmos() function it will draw a curved path through the provided array of Transforms.
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPath(Transform[] path,Color color) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath, color,"gizmos");
+		}
+	}	
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawPathGizmos(Vector3[] path) {
+		if(path.Length>0){
+			DrawPathHelper(path,Defaults.color,"gizmos");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Vector3s with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPathGizmos(Vector3[] path, Color color) {
+		if(path.Length>0){
+			DrawPathHelper(path, color,"gizmos");
+		}
+	}
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Transforms with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawPathGizmos(Transform[] path) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath,Defaults.color,"gizmos");	
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Transforms with Gizmos.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPathGizmos(Transform[] path,Color color) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath, color,"gizmos");
+		}
+	}	
+
+	/// <summary>
+	/// Draws a curved path through the provided array of Vector3s with Handles.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	public static void DrawPathHandles(Vector3[] path) {
+		if(path.Length>0){
+			DrawPathHelper(path,Defaults.color,"handles");
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Vector3s with Handles.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Vector3s[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPathHandles(Vector3[] path, Color color) {
+		if(path.Length>0){
+			DrawPathHelper(path, color,"handles");
+		}
+	}
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Transforms with Handles.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	public static void DrawPathHandles(Transform[] path) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath,Defaults.color,"handles");	
+		}
+	}		
+	
+	/// <summary>
+	/// Draws a curved path through the provided array of Transforms with Handles.DrawLine().
+	/// </summary>
+	/// <param name="path">
+	/// A <see cref="Transform[]"/>
+	/// </param>
+	/// <param name="color">
+	/// A <see cref="Color"/>
+	/// </param> 
+	public static void DrawPathHandles(Transform[] path,Color color) {
+		if(path.Length>0){
+			//create and store path points:
+			Vector3[] suppliedPath = new Vector3[path.Length];
+			for (int i = 0; i < path.Length; i++) {
+				suppliedPath[i]=path[i].position;
+			}
+			
+			DrawPathHelper(suppliedPath, color,"handles");
+		}
+	}
+	
+	/// <summary>
+	/// Changes a camera fade's texture.
+	/// </summary>
+	/// <param name="depth">
+	/// A <see cref="System.Int32"/>
+	/// </param>
+	public static void CameraFadeDepth(int depth){
+		if(cameraFade){
+			cameraFade.transform.position=new Vector3(cameraFade.transform.position.x,cameraFade.transform.position.y,depth);
+		}
+	}
+	
+	/// <summary>
+	/// Removes and destroyes a camera fade.
+	/// </summary>
+	public static void CameraFadeDestroy(){
+		if(cameraFade){
+			Destroy(cameraFade);
+		}
+	}
+	
+	/// <summary>
+	/// Changes a camera fade's texture.
+	/// </summary>
+	/// <param name='texture'>
+	/// A <see cref="Texture2D"/>
+	/// </param>
+	public static void CameraFadeSwap(Texture2D texture){
+		if(cameraFade){
+			cameraFade.GetComponent<GUITexture>().texture=texture;
+		}
+	}
+	
+	/// <summary>
+	/// Creates a GameObject (if it doesn't exist) at the supplied depth that can be used to simulate a camera fade.
+	/// </summary>
+	/// <param name='texture'>
+	/// A <see cref="Texture2D"/>
+	/// </param>
+	/// <param name='depth'>
+	/// A <see cref="System.Int32"/>
+	/// </param>
+	/// <returns>
+	/// A <see cref="GameObject"/> for a reference to the CameraFade.
+	/// </returns>
+	public static GameObject CameraFadeAdd(Texture2D texture, int depth){
+		if(cameraFade){
+			return null;
+		}else{			
+			//establish colorFade object:
+			cameraFade = new GameObject("iTween Camera Fade");
+			cameraFade.transform.position= new Vector3(.5f,.5f,depth);
+			cameraFade.AddComponent<GUITexture>();
+			cameraFade.GetComponent<GUITexture>().texture=texture;
+			cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
+			return cameraFade;
+		}
+	}
+	
+	/// <summary>
+	/// Creates a GameObject (if it doesn't exist) at the default depth that can be used to simulate a camera fade.
+	/// </summary>
+	/// <param name='texture'>
+	/// A <see cref="Texture2D"/>
+	/// </param>
+	/// <returns>
+	/// A <see cref="GameObject"/> for a reference to the CameraFade.
+	/// </returns>
+	public static GameObject CameraFadeAdd(Texture2D texture){
+		if(cameraFade){
+			return null;
+		}else{			
+			//establish colorFade object:
+			cameraFade = new GameObject("iTween Camera Fade");
+			cameraFade.transform.position= new Vector3(.5f,.5f,Defaults.cameraFadeDepth);
+			cameraFade.AddComponent<GUITexture>();
+			cameraFade.GetComponent<GUITexture>().texture=texture;
+			cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
+			return cameraFade;
+		}
+	}
+	
+	/// <summary>
+	/// Creates a GameObject (if it doesn't exist) at the default depth filled with black that can be used to simulate a camera fade.
+	/// </summary>
+	/// <returns>
+	/// A <see cref="GameObject"/> for a reference to the CameraFade.
+	/// </returns>
+	public static GameObject CameraFadeAdd(){
+		if(cameraFade){
+			return null;
+		}else{			
+			//establish colorFade object:
+			cameraFade = new GameObject("iTween Camera Fade");
+			cameraFade.transform.position= new Vector3(.5f,.5f,Defaults.cameraFadeDepth);
+			cameraFade.AddComponent<GUITexture>();
+			cameraFade.GetComponent<GUITexture>().texture=CameraTexture(Color.black);
+			cameraFade.GetComponent<GUITexture>().color = new Color(.5f,.5f,.5f,0);
+			return cameraFade;
+		}
+	}	
+	
+	
+	//#################################
+	//# RESUME UTILITIES AND OVERLOADS # 
+	//#################################	
+	
+	/// <summary>
+	/// Resume all iTweens on a GameObject.
+	/// </summary>
+	public static void Resume(GameObject target){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			item.enabled=true;
+		}
+	}
+	
+	/// <summary>
+	/// Resume all iTweens on a GameObject including its children.
+	/// </summary>
+	public static void Resume(GameObject target, bool includechildren){
+		Resume(target);
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Resume(child.gameObject,true);
+			}			
+		}
+	}	
+	
+	/// <summary>
+	/// Resume all iTweens on a GameObject of a particular type.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to resume.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Resume(GameObject target, string type){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.enabled=true;
+			}
+		}
+	}
+	
+	/// <summary>
+	/// Resume all iTweens on a GameObject of a particular type including its children.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to resume.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Resume(GameObject target, string type, bool includechildren){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.enabled=true;
+			}
+		}
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Resume(child.gameObject,type,true);
+			}			
+		}		
+	}	
+	
+	/// <summary>
+	/// Resume all iTweens in scene.
+	/// </summary>
+	public static void Resume(){
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			Resume(target);
+		}
+	}	
+	
+	/// <summary>
+	/// Resume all iTweens in scene of a particular type.
+	/// </summary>
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to resume.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param> 
+	public static void Resume(string type){
+		ArrayList resumeArray = new ArrayList();
+		
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			resumeArray.Insert(resumeArray.Count,target);
+		}
+		
+		for (int i = 0; i < resumeArray.Count; i++) {
+			Resume((GameObject)resumeArray[i],type);
+		}
+	}			
+	
+	//#################################
+	//# PAUSE UTILITIES AND OVERLOADS # 
+	//#################################
+
+	/// <summary>
+	/// Pause all iTweens on a GameObject.
+	/// </summary>
+	public static void Pause(GameObject target){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			if(item.delay>0){
+				item.delay-=Time.time-item.delayStarted;
+				item.StopCoroutine("TweenDelay");
+			}
+			item.isPaused=true;
+			item.enabled=false;
+		}
+	}
+	
+	/// <summary>
+	/// Pause all iTweens on a GameObject including its children.
+	/// </summary>
+	public static void Pause(GameObject target, bool includechildren){
+		Pause(target);
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Pause(child.gameObject,true);
+			}			
+		}
+	}	
+	
+	/// <summary>
+	/// Pause all iTweens on a GameObject of a particular type.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to pause.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Pause(GameObject target, string type){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				if(item.delay>0){
+					item.delay-=Time.time-item.delayStarted;
+					item.StopCoroutine("TweenDelay");
+				}
+				item.isPaused=true;
+				item.enabled=false;
+			}
+		}
+	}
+	
+	/// <summary>
+	/// Pause all iTweens on a GameObject of a particular type including its children.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to pause.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Pause(GameObject target, string type, bool includechildren){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				if(item.delay>0){
+					item.delay-=Time.time-item.delayStarted;
+					item.StopCoroutine("TweenDelay");
+				}
+				item.isPaused=true;
+				item.enabled=false;
+			}
+		}
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Pause(child.gameObject,type,true);
+			}			
+		}		
+	}	
+	
+	/// <summary>
+	/// Pause all iTweens in scene.
+	/// </summary>
+	public static void Pause(){
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			Pause(target);
+		}
+	}	
+	
+	/// <summary>
+	/// Pause all iTweens in scene of a particular type.
+	/// </summary>
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to pause.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param> 
+	public static void Pause(string type){
+		ArrayList pauseArray = new ArrayList();
+		
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			pauseArray.Insert(pauseArray.Count,target);
+		}
+		
+		for (int i = 0; i < pauseArray.Count; i++) {
+			Pause((GameObject)pauseArray[i],type);
+		}
+	}		
+	
+	//#################################
+	//# COUNT UTILITIES AND OVERLOADS # 
+	//#################################	
+	
+	/// <summary>
+	/// Count all iTweens in current scene.
+	/// </summary>
+	public static int Count(){
+		return(tweens.Count);
+	}
+	
+	/// <summary>
+	/// Count all iTweens in current scene of a particular type.
+	/// </summary>
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to stop.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param> 
+	public static int Count(string type){
+		int tweenCount = 0;
+
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			string targetType = (string)currentTween["type"]+(string)currentTween["method"];
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				tweenCount++;
+			}
+		}	
+		
+		return(tweenCount);
+	}			
+
+	/// <summary>
+	/// Count all iTweens on a GameObject.
+	/// </summary>
+	public static int Count(GameObject target){
+		Component[] tweens = target.GetComponents<iTween>();
+		return(tweens.Length);
+	}
+	
+	/// <summary>
+	/// Count all iTweens on a GameObject of a particular type.
+	/// </summary>
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to count.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>  
+	public static int Count(GameObject target, string type){
+		int tweenCount = 0;
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				tweenCount++;
+			}
+		}
+		return(tweenCount);
+	}	
+	
+	//################################
+	//# STOP UTILITIES AND OVERLOADS # 
+	//################################	
+	
+	/// <summary>
+	/// Stop and destroy all Tweens in current scene.
+	/// </summary>
+	public static void Stop(){
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			Stop(target);
+		}
+		tweens.Clear();
+	}	
+	
+	/// <summary>
+	/// Stop and destroy all iTweens in current scene of a particular type.
+	/// </summary>
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to stop.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param> 
+	public static void Stop(string type){
+		ArrayList stopArray = new ArrayList();
+		
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			stopArray.Insert(stopArray.Count,target);
+		}
+		
+		for (int i = 0; i < stopArray.Count; i++) {
+			Stop((GameObject)stopArray[i],type);
+		}
+	}		
+	
+	/* GFX47 MOD START */
+	/// <summary>
+	/// Stop and destroy all iTweens in current scene of a particular name.
+	/// </summary>
+	/// <param name="name">
+	/// The <see cref="System.String"/> name of iTween you would like to stop.
+	/// </param> 
+	public static void StopByName(string name){
+		ArrayList stopArray = new ArrayList();
+		
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable currentTween = tweens[i];
+			GameObject target = (GameObject)currentTween["target"];
+			stopArray.Insert(stopArray.Count,target);
+		}
+		
+		for (int i = 0; i < stopArray.Count; i++) {
+			StopByName((GameObject)stopArray[i],name);
+		}
+	}
+	/* GFX47 MOD END */
+	
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject.
+	/// </summary>
+	public static void Stop(GameObject target){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			item.Dispose();
+		}
+	}
+	
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject including its children.
+	/// </summary>
+	public static void Stop(GameObject target, bool includechildren){
+		Stop(target);
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Stop(child.gameObject,true);
+			}			
+		}
+	}	
+	
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject of a particular type.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to stop.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Stop(GameObject target, string type){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.Dispose();
+			}
+		}
+	}
+	
+	/* GFX47 MOD START */
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject of a particular name.
+	/// </summar
+	/// <param name="name">
+	/// The <see cref="System.String"/> name of iTween you would like to stop.
+	/// </param>	
+	public static void StopByName(GameObject target, string name){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			/*string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.Dispose();
+			}*/
+			if(item._name == name){
+				item.Dispose();
+			}
+		}
+	}
+	/* GFX47 MOD END */
+	
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject of a particular type including its children.
+	/// </summar
+	/// <param name="type">
+	/// A <see cref="System.String"/> name of the type of iTween you would like to stop.  Can be written as part of a name such as "mov" for all "MoveTo" iTweens.
+	/// </param>	
+	public static void Stop(GameObject target, string type, bool includechildren){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.Dispose();
+			}
+		}
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				Stop(child.gameObject,type,true);
+			}			
+		}		
+	}
+	
+	/* GFX47 MOD START */
+	/// <summary>
+	/// Stop and destroy all iTweens on a GameObject of a particular name including its children.
+	/// </summar
+	/// <param name="name">
+	/// The <see cref="System.String"/> name of iTween you would like to stop.
+	/// </param>	
+	public static void StopByName(GameObject target, string name, bool includechildren){
+		Component[] tweens = target.GetComponents<iTween>();
+		foreach (iTween item in tweens){
+			/*string targetType = item.type+item.method;
+			targetType=targetType.Substring(0,type.Length);
+			if(targetType.ToLower() == type.ToLower()){
+				item.Dispose();
+			}*/
+			if(item._name == name){
+				item.Dispose();
+			}
+		}
+		if(includechildren){
+			foreach(Transform child in target.transform){
+				//Stop(child.gameObject,type,true);
+				StopByName(child.gameObject,name,true);
+			}			
+		}		
+	}
+	/* GFX47 MOD END */
+
+	/// <summary>
+	/// Universal interface to help in the creation of Hashtables.  Especially useful for C# users.
+	/// </summary>
+	/// <param name="args">
+	/// A <see cref="System.Object[]"/> of alternating name value pairs.  For example "time",1,"delay",2...
+	/// </param>
+	/// <returns>
+	/// A <see cref="Hashtable"/>
+	/// </returns>
+	public static Hashtable Hash(params object[] args){
+		Hashtable hashTable = new Hashtable(args.Length/2);
+		if (args.Length %2 != 0) {
+			Debug.LogError("Tween Error: Hash requires an even number of arguments!"); 
+			return null;
+		}else{
+			int i = 0;
+			while(i < args.Length - 1) {
+				hashTable.Add(args[i], args[i+1]);
+				i += 2;
+			}
+			return hashTable;
+		}
+	}	
+	
+	#endregion		
+
+	#region Component Segments
+	
+	private iTween(Hashtable h) {
+		tweenArguments = h;	
+	}
+	
+	void Awake(){
+		thisTransform = transform;
+			
+		RetrieveArgs();
+        lastRealTime = Time.realtimeSinceStartup; // Added by PressPlay
+	}
+	
+	IEnumerator Start(){
+		if(delay > 0){
+			yield return StartCoroutine("TweenDelay");
+		}
+		TweenStart();
+	}	
+	
+	//non-physics
+	void Update(){
+		if(isRunning && !physics){
+			if(!reverse){
+				if(percentage<1f){
+					TweenUpdate();
+				}else{
+					TweenComplete();	
+				}
+			}else{
+				if(percentage>0){
+					TweenUpdate();
+				}else{
+					TweenComplete();	
+				}
+			}
+		}
+	}
+	
+	//physics
+	void FixedUpdate(){
+		if(isRunning && physics){
+			if(!reverse){
+				if(percentage<1f){
+					TweenUpdate();
+				}else{
+					TweenComplete();	
+				}
+			}else{
+				if(percentage>0){
+					TweenUpdate();
+				}else{
+					TweenComplete();	
+				}
+			}
+		}	
+	}
+
+	void LateUpdate(){
+		//look applications:
+		if(tweenArguments.Contains("looktarget") && isRunning){
+			if(type =="move" || type =="shake" || type=="punch"){
+				LookUpdate(gameObject,tweenArguments);
+			}			
+		}
+	}
+	
+	void OnEnable(){
+		if(isRunning){
+			EnableKinematic();
+		}
+	
+		//resume delay:
+		if(isPaused){
+			isPaused=false;
+			if(delay > 0){
+				wasPaused=true;
+				ResumeDelay();
+			}
+		}
+	}
+
+	void OnDisable(){
+		DisableKinematic();
+	}
+	
+	#endregion
+	
+	#region Internal Helpers
+	
+	private static void DrawLineHelper(Vector3[] line, Color color, string method){
+		Gizmos.color=color;
+		for (int i = 0; i < line.Length-1; i++) {
+			if(method == "gizmos"){
+				Gizmos.DrawLine(line[i], line[i+1]);;
+			}else if(method == "handles"){
+				Debug.LogError("iTween Error: Drawing a line with Handles is temporarily disabled because of compatability issues with Unity 2.6!");
+				//UnityEditor.Handles.DrawLine(line[i], line[i+1]);
+			}
+		}
+	}		
+	
+	private static void DrawPathHelper(Vector3[] path, Color color, string method){
+		Vector3[] vector3s = PathControlPointGenerator(path);
+		
+		//Line Draw:
+		Vector3 prevPt = Interp(vector3s,0);
+		Gizmos.color=color;
+		int SmoothAmount = path.Length*20;
+		for (int i = 1; i <= SmoothAmount; i++) {
+			float pm = (float) i / SmoothAmount;
+			Vector3 currPt = Interp(vector3s,pm);
+			if(method == "gizmos"){
+				Gizmos.DrawLine(currPt, prevPt);
+			}else if(method == "handles"){
+				Debug.LogError("iTween Error: Drawing a path with Handles is temporarily disabled because of compatability issues with Unity 2.6!");
+				//UnityEditor.Handles.DrawLine(currPt, prevPt);
+			}
+			prevPt = currPt;
+		}
+	}	
+	
+	private static Vector3[] PathControlPointGenerator(Vector3[] path){
+		Vector3[] suppliedPath;
+		Vector3[] vector3s;
+		
+		//create and store path points:
+		suppliedPath = path;
+
+		//populate calculate path;
+		int offset = 2;
+		vector3s = new Vector3[suppliedPath.Length+offset];
+		Array.Copy(suppliedPath,0,vector3s,1,suppliedPath.Length);
+		
+		//populate start and end control points:
+		//vector3s[0] = vector3s[1] - vector3s[2];
+		vector3s[0] = vector3s[1] + (vector3s[1] - vector3s[2]);
+		vector3s[vector3s.Length-1] = vector3s[vector3s.Length-2] + (vector3s[vector3s.Length-2] - vector3s[vector3s.Length-3]);
+		
+		//is this a closed, continuous loop? yes? well then so let's make a continuous Catmull-Rom spline!
+		if(vector3s[1] == vector3s[vector3s.Length-2]){
+			Vector3[] tmpLoopSpline = new Vector3[vector3s.Length];
+			Array.Copy(vector3s,tmpLoopSpline,vector3s.Length);
+			tmpLoopSpline[0]=tmpLoopSpline[tmpLoopSpline.Length-3];
+			tmpLoopSpline[tmpLoopSpline.Length-1]=tmpLoopSpline[2];
+			vector3s=new Vector3[tmpLoopSpline.Length];
+			Array.Copy(tmpLoopSpline,vector3s,tmpLoopSpline.Length);
+		}	
+		
+		return(vector3s);
+	}
+	
+	//andeeee from the Unity forum's steller Catmull-Rom class ( http://forum.unity3d.com/viewtopic.php?p=218400#218400 ):
+	private static Vector3 Interp(Vector3[] pts, float t){
+		int numSections = pts.Length - 3;
+		int currPt = Mathf.Min(Mathf.FloorToInt(t * (float) numSections), numSections - 1);
+		float u = t * (float) numSections - (float) currPt;
+				
+		Vector3 a = pts[currPt];
+		Vector3 b = pts[currPt + 1];
+		Vector3 c = pts[currPt + 2];
+		Vector3 d = pts[currPt + 3];
+		
+		return .5f * (
+			(-a + 3f * b - 3f * c + d) * (u * u * u)
+			+ (2f * a - 5f * b + 4f * c - d) * (u * u)
+			+ (-a + c) * u
+			+ 2f * b
+		);
+	}	
+		
+	//andeeee from the Unity forum's steller Catmull-Rom class ( http://forum.unity3d.com/viewtopic.php?p=218400#218400 ):
+	private class CRSpline {
+		public Vector3[] pts;
+		
+		public CRSpline(params Vector3[] pts) {
+			this.pts = new Vector3[pts.Length];
+			Array.Copy(pts, this.pts, pts.Length);
+		}
+		
+		
+		public Vector3 Interp(float t) {
+			int numSections = pts.Length - 3;
+			int currPt = Mathf.Min(Mathf.FloorToInt(t * (float) numSections), numSections - 1);
+			float u = t * (float) numSections - (float) currPt;
+			Vector3 a = pts[currPt];
+			Vector3 b = pts[currPt + 1];
+			Vector3 c = pts[currPt + 2];
+			Vector3 d = pts[currPt + 3];
+			return .5f*((-a+3f*b-3f*c+d)*(u*u*u)+(2f*a-5f*b+4f*c-d)*(u*u)+(-a+c)*u+2f*b);
+		}	
+	}	
+	
+	//catalog new tween and add component phase of iTween:
+	static void Launch(GameObject target, Hashtable args){
+		if(!args.Contains("id")){
+			args["id"] = GenerateID();
+		}
+		if(!args.Contains("target")){
+			args["target"] = target;
+		
+		}		
+
+		tweens.Insert (0, args);
+		target.AddComponent<iTween>();
+	}		
+	
+	//cast any accidentally supplied doubles and ints as floats as iTween only uses floats internally and unify parameter case:
+	static Hashtable CleanArgs(Hashtable args){
+		Hashtable argsCopy = new Hashtable(args.Count);
+		Hashtable argsCaseUnified = new Hashtable(args.Count);
+		
+		foreach (DictionaryEntry item in args) {
+			argsCopy.Add(item.Key, item.Value);
+		}
+		
+		foreach (DictionaryEntry item in argsCopy) {
+			if(item.Value.GetType() == typeof(System.Int32)){
+				int original = (int)item.Value;
+				float casted = (float)original;
+				args[item.Key] = casted;
+			}
+			if(item.Value.GetType() == typeof(System.Double)){
+				double original = (double)item.Value;
+				float casted = (float)original;
+				args[item.Key] = casted;
+			}
+		}	
+		
+		//unify parameter case:
+		foreach (DictionaryEntry item in args) {
+			argsCaseUnified.Add(item.Key.ToString().ToLower(), item.Value);
+		}	
+		
+		//swap back case unification:
+		args = argsCaseUnified;
+				
+		return args;
+	}	
+	
+	//random ID generator:
+	static string GenerateID(){
+//		int strlen = 15;
+//		char[] chars = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8'};
+//		int num_chars = chars.Length - 1;
+//		string randomChar = "";
+//		for (int i = 0; i < strlen; i++) {
+//			randomChar += chars[(int)Mathf.Floor(UnityEngine.Random.Range(0,num_chars))];
+//		}
+		return System.Guid.NewGuid().ToString();
+	}	
+	
+	//grab and set generic, neccesary iTween arguments:
+	void RetrieveArgs(){
+		foreach (Hashtable item in tweens) {
+			if((GameObject)item["target"] == gameObject){
+				tweenArguments=item;
+				break;
+			}
+		}
+		
+		id=(string)tweenArguments["id"];
+		type=(string)tweenArguments["type"];
+		/* GFX47 MOD START */
+		_name=(string)tweenArguments["name"];
+		/* GFX47 MOD END */
+		method=(string)tweenArguments["method"];
+               
+		if(tweenArguments.Contains("time")){
+			time=(float)tweenArguments["time"];
+		}else{
+			time=Defaults.time;
+		}
+			
+		//do we need to use physics, is there a rigidbody?
+		if(GetComponent<Rigidbody>() != null){
+			physics=true;
+		}
+               
+		if(tweenArguments.Contains("delay")){
+			delay=(float)tweenArguments["delay"];
+		}else{
+			delay=Defaults.delay;
+		}
+				
+		if(tweenArguments.Contains("namedcolorvalue")){
+			//allows namedcolorvalue to be set as either an enum(C# friendly) or a string(JS friendly), string case usage doesn't matter to further increase usability:
+			if(tweenArguments["namedcolorvalue"].GetType() == typeof(NamedValueColor)){
+				namedcolorvalue=(NamedValueColor)tweenArguments["namedcolorvalue"];
+			}else{
+				try {
+					namedcolorvalue=(NamedValueColor)Enum.Parse(typeof(NamedValueColor),(string)tweenArguments["namedcolorvalue"],true); 
+				} catch {
+					Debug.LogWarning("iTween: Unsupported namedcolorvalue supplied! Default will be used.");
+					namedcolorvalue = iTween.NamedValueColor._Color;
+				}
+			}			
+		}else{
+			namedcolorvalue=Defaults.namedColorValue;	
+		}	
+		
+		if(tweenArguments.Contains("looptype")){
+			//allows loopType to be set as either an enum(C# friendly) or a string(JS friendly), string case usage doesn't matter to further increase usability:
+			if(tweenArguments["looptype"].GetType() == typeof(LoopType)){
+				loopType=(LoopType)tweenArguments["looptype"];
+			}else{
+				try {
+					loopType=(LoopType)Enum.Parse(typeof(LoopType),(string)tweenArguments["looptype"],true); 
+				} catch {
+					Debug.LogWarning("iTween: Unsupported loopType supplied! Default will be used.");
+					loopType = iTween.LoopType.none;	
+				}
+			}			
+		}else{
+			loopType = iTween.LoopType.none;	
+		}			
+         
+		if(tweenArguments.Contains("easetype")){
+			//allows easeType to be set as either an enum(C# friendly) or a string(JS friendly), string case usage doesn't matter to further increase usability:
+			if(tweenArguments["easetype"].GetType() == typeof(EaseType)){
+				easeType=(EaseType)tweenArguments["easetype"];
+			}else{
+				try {
+					easeType=(EaseType)Enum.Parse(typeof(EaseType),(string)tweenArguments["easetype"],true); 
+				} catch {
+					Debug.LogWarning("iTween: Unsupported easeType supplied! Default will be used.");
+					easeType=Defaults.easeType;
+				}
+			}
+		}else{
+			easeType=Defaults.easeType;
+		}
+				
+		if(tweenArguments.Contains("space")){
+			//allows space to be set as either an enum(C# friendly) or a string(JS friendly), string case usage doesn't matter to further increase usability:
+			if(tweenArguments["space"].GetType() == typeof(Space)){
+				space=(Space)tweenArguments["space"];
+			}else{
+				try {
+					space=(Space)Enum.Parse(typeof(Space),(string)tweenArguments["space"],true); 	
+				} catch {
+					Debug.LogWarning("iTween: Unsupported space supplied! Default will be used.");
+					space = Defaults.space;
+				}
+			}			
+		}else{
+			space = Defaults.space;
+		}
+		
+		if(tweenArguments.Contains("islocal")){
+			isLocal = (bool)tweenArguments["islocal"];
+		}else{
+			isLocal = Defaults.isLocal;
+		}
+
+        // Added by PressPlay
+        if (tweenArguments.Contains("ignoretimescale"))
+        {
+            useRealTime = (bool)tweenArguments["ignoretimescale"];
+        }
+        else
+        {
+            useRealTime = Defaults.useRealTime;
+        }
+
+		//instantiates a cached ease equation reference:
+		GetEasingFunction();
+	}	
+	
+	//instantiates a cached ease equation refrence:
+	void GetEasingFunction(){
+		switch (easeType){
+		case EaseType.easeInQuad:
+			ease  = new EasingFunction(easeInQuad);
+			break;
+		case EaseType.easeOutQuad:
+			ease = new EasingFunction(easeOutQuad);
+			break;
+		case EaseType.easeInOutQuad:
+			ease = new EasingFunction(easeInOutQuad);
+			break;
+		case EaseType.easeInCubic:
+			ease = new EasingFunction(easeInCubic);
+			break;
+		case EaseType.easeOutCubic:
+			ease = new EasingFunction(easeOutCubic);
+			break;
+		case EaseType.easeInOutCubic:
+			ease = new EasingFunction(easeInOutCubic);
+			break;
+		case EaseType.easeInQuart:
+			ease = new EasingFunction(easeInQuart);
+			break;
+		case EaseType.easeOutQuart:
+			ease = new EasingFunction(easeOutQuart);
+			break;
+		case EaseType.easeInOutQuart:
+			ease = new EasingFunction(easeInOutQuart);
+			break;
+		case EaseType.easeInQuint:
+			ease = new EasingFunction(easeInQuint);
+			break;
+		case EaseType.easeOutQuint:
+			ease = new EasingFunction(easeOutQuint);
+			break;
+		case EaseType.easeInOutQuint:
+			ease = new EasingFunction(easeInOutQuint);
+			break;
+		case EaseType.easeInSine:
+			ease = new EasingFunction(easeInSine);
+			break;
+		case EaseType.easeOutSine:
+			ease = new EasingFunction(easeOutSine);
+			break;
+		case EaseType.easeInOutSine:
+			ease = new EasingFunction(easeInOutSine);
+			break;
+		case EaseType.easeInExpo:
+			ease = new EasingFunction(easeInExpo);
+			break;
+		case EaseType.easeOutExpo:
+			ease = new EasingFunction(easeOutExpo);
+			break;
+		case EaseType.easeInOutExpo:
+			ease = new EasingFunction(easeInOutExpo);
+			break;
+		case EaseType.easeInCirc:
+			ease = new EasingFunction(easeInCirc);
+			break;
+		case EaseType.easeOutCirc:
+			ease = new EasingFunction(easeOutCirc);
+			break;
+		case EaseType.easeInOutCirc:
+			ease = new EasingFunction(easeInOutCirc);
+			break;
+		case EaseType.linear:
+			ease = new EasingFunction(linear);
+			break;
+		case EaseType.spring:
+			ease = new EasingFunction(spring);
+			break;
+		/* GFX47 MOD START */
+		/*case EaseType.bounce:
+			ease = new EasingFunction(bounce);
+			break;*/
+		case EaseType.easeInBounce:
+			ease = new EasingFunction(easeInBounce);
+			break;
+		case EaseType.easeOutBounce:
+			ease = new EasingFunction(easeOutBounce);
+			break;
+		case EaseType.easeInOutBounce:
+			ease = new EasingFunction(easeInOutBounce);
+			break;
+		/* GFX47 MOD END */
+		case EaseType.easeInBack:
+			ease = new EasingFunction(easeInBack);
+			break;
+		case EaseType.easeOutBack:
+			ease = new EasingFunction(easeOutBack);
+			break;
+		case EaseType.easeInOutBack:
+			ease = new EasingFunction(easeInOutBack);
+			break;
+		/* GFX47 MOD START */
+		/*case EaseType.elastic:
+			ease = new EasingFunction(elastic);
+			break;*/
+		case EaseType.easeInElastic:
+			ease = new EasingFunction(easeInElastic);
+			break;
+		case EaseType.easeOutElastic:
+			ease = new EasingFunction(easeOutElastic);
+			break;
+		case EaseType.easeInOutElastic:
+			ease = new EasingFunction(easeInOutElastic);
+			break;
+		/* GFX47 MOD END */
+		}
+	}
+	
+	//calculate percentage of tween based on time:
+	void UpdatePercentage(){
+
+	        // Added by PressPlay   
+	        if (useRealTime)
+	        {
+	            runningTime += (Time.realtimeSinceStartup - lastRealTime);      
+	        }
+	        else
+	        {
+	            runningTime += Time.deltaTime;
+	        }
+	
+			if(reverse){
+				percentage = 1 - runningTime/time;	
+			}else{
+				percentage = runningTime/time;	
+			}
+	
+	        lastRealTime = Time.realtimeSinceStartup; // Added by PressPlay
+	}
+	
+	void CallBack(string callbackType){
+		if (tweenArguments.Contains(callbackType) && !tweenArguments.Contains("ischild")) {
+			//establish target:
+			GameObject target;
+			if (tweenArguments.Contains(callbackType+"target")) {
+				target=(GameObject)tweenArguments[callbackType+"target"];
+			}else{
+				target=gameObject;	
+			}
+			
+			//throw an error if a string wasn't passed for callback:
+			if (tweenArguments[callbackType].GetType() == typeof(System.String)) {
+				target.SendMessage((string)tweenArguments[callbackType],(object)tweenArguments[callbackType+"params"],SendMessageOptions.DontRequireReceiver);
+			}else{
+				Debug.LogError("iTween Error: Callback method references must be passed as a String!");
+				Destroy (this);
+			}
+		}
+	}
+	
+	void Dispose(){
+		for (int i = 0; i < tweens.Count; i++) {
+			Hashtable tweenEntry = tweens[i];
+			if ((string)tweenEntry["id"] == id){
+				tweens.RemoveAt(i);
+				break;
+			}
+		}
+		Destroy(this);
+	}	
+	
+	void ConflictCheck(){//if a new iTween is about to run and is of the same type as an in progress iTween this will destroy the previous if the new one is NOT identical in every way or it will destroy the new iTween if they are:	
+		Component[] tweens = GetComponents<iTween>();
+		foreach (iTween item in tweens) {
+			if(item.type == "value"){
+				return;
+			}else if(item.isRunning && item.type==type){
+				//cancel out if this is a shake or punch variant:
+				if (item.method != method) {
+					return;
+				}				
+				
+				//step 1: check for length first since it's the fastest:
+				if(item.tweenArguments.Count != tweenArguments.Count){
+					item.Dispose();
+					return;
+				}
+				
+				//step 2: side-by-side check to figure out if this is an identical tween scenario to handle Update usages of iTween:
+				foreach (DictionaryEntry currentProp in tweenArguments) {
+					if(!item.tweenArguments.Contains(currentProp.Key)){
+						item.Dispose();
+						return;
+					}else{
+						if(!item.tweenArguments[currentProp.Key].Equals(tweenArguments[currentProp.Key]) && (string)currentProp.Key != "id"){//if we aren't comparing ids and something isn't exactly the same replace the running iTween: 
+							item.Dispose();
+							return;
+						}
+					}
+				}
+				
+				//step 3: prevent a new iTween addition if it is identical to the currently running iTween
+				Dispose();
+				//Destroy(this);	
+			}
+		}
+	}
+	
+	void EnableKinematic(){
+		/*
+		if(gameObject.GetComponent(typeof(Rigidbody))){
+			if(!rigidbody.isKinematic){
+				kinematic=true;
+				rigidbody.isKinematic=true;
+			}
+		}
+		*/
+	}
+	
+	void DisableKinematic(){
+		/*
+		if(kinematic && rigidbody.isKinematic==true){
+			kinematic=false;
+			rigidbody.isKinematic=false;
+		}
+		*/
+	}
+		
+	void ResumeDelay(){
+		StartCoroutine("TweenDelay");
+	}	
+	
+	#endregion	
+	
+	#region Easing Curves
+	
+	private float linear(float start, float end, float value){
+		return Mathf.Lerp(start, end, value);
+	}
+	
+	private float clerp(float start, float end, float value){
+		float min = 0.0f;
+		float max = 360.0f;
+		float half = Mathf.Abs((max - min) * 0.5f);
+		float retval = 0.0f;
+		float diff = 0.0f;
+		if ((end - start) < -half){
+			diff = ((max - start) + end) * value;
+			retval = start + diff;
+		}else if ((end - start) > half){
+			diff = -((max - end) + start) * value;
+			retval = start + diff;
+		}else retval = start + (end - start) * value;
+		return retval;
+    }
+
+	private float spring(float start, float end, float value){
+		value = Mathf.Clamp01(value);
+		value = (Mathf.Sin(value * Mathf.PI * (0.2f + 2.5f * value * value * value)) * Mathf.Pow(1f - value, 2.2f) + value) * (1f + (1.2f * (1f - value)));
+		return start + (end - start) * value;
+	}
+
+	private float easeInQuad(float start, float end, float value){
+		end -= start;
+		return end * value * value + start;
+	}
+
+	private float easeOutQuad(float start, float end, float value){
+		end -= start;
+		return -end * value * (value - 2) + start;
+	}
+
+	private float easeInOutQuad(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return end * 0.5f * value * value + start;
+		value--;
+		return -end * 0.5f * (value * (value - 2) - 1) + start;
+	}
+
+	private float easeInCubic(float start, float end, float value){
+		end -= start;
+		return end * value * value * value + start;
+	}
+
+	private float easeOutCubic(float start, float end, float value){
+		value--;
+		end -= start;
+		return end * (value * value * value + 1) + start;
+	}
+
+	private float easeInOutCubic(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return end * 0.5f * value * value * value + start;
+		value -= 2;
+		return end * 0.5f * (value * value * value + 2) + start;
+	}
+
+	private float easeInQuart(float start, float end, float value){
+		end -= start;
+		return end * value * value * value * value + start;
+	}
+
+	private float easeOutQuart(float start, float end, float value){
+		value--;
+		end -= start;
+		return -end * (value * value * value * value - 1) + start;
+	}
+
+	private float easeInOutQuart(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return end * 0.5f * value * value * value * value + start;
+		value -= 2;
+		return -end * 0.5f * (value * value * value * value - 2) + start;
+	}
+
+	private float easeInQuint(float start, float end, float value){
+		end -= start;
+		return end * value * value * value * value * value + start;
+	}
+
+	private float easeOutQuint(float start, float end, float value){
+		value--;
+		end -= start;
+		return end * (value * value * value * value * value + 1) + start;
+	}
+
+	private float easeInOutQuint(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return end * 0.5f * value * value * value * value * value + start;
+		value -= 2;
+		return end * 0.5f * (value * value * value * value * value + 2) + start;
+	}
+
+	private float easeInSine(float start, float end, float value){
+		end -= start;
+		return -end * Mathf.Cos(value * (Mathf.PI * 0.5f)) + end + start;
+	}
+
+	private float easeOutSine(float start, float end, float value){
+		end -= start;
+		return end * Mathf.Sin(value * (Mathf.PI * 0.5f)) + start;
+	}
+
+	private float easeInOutSine(float start, float end, float value){
+		end -= start;
+		return -end * 0.5f * (Mathf.Cos(Mathf.PI * value) - 1) + start;
+	}
+
+	private float easeInExpo(float start, float end, float value){
+		end -= start;
+		return end * Mathf.Pow(2, 10 * (value - 1)) + start;
+	}
+
+	private float easeOutExpo(float start, float end, float value){
+		end -= start;
+		return end * (-Mathf.Pow(2, -10 * value ) + 1) + start;
+	}
+
+	private float easeInOutExpo(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return end * 0.5f * Mathf.Pow(2, 10 * (value - 1)) + start;
+		value--;
+		return end * 0.5f * (-Mathf.Pow(2, -10 * value) + 2) + start;
+	}
+
+	private float easeInCirc(float start, float end, float value){
+		end -= start;
+		return -end * (Mathf.Sqrt(1 - value * value) - 1) + start;
+	}
+
+	private float easeOutCirc(float start, float end, float value){
+		value--;
+		end -= start;
+		return end * Mathf.Sqrt(1 - value * value) + start;
+	}
+
+	private float easeInOutCirc(float start, float end, float value){
+		value /= .5f;
+		end -= start;
+		if (value < 1) return -end * 0.5f * (Mathf.Sqrt(1 - value * value) - 1) + start;
+		value -= 2;
+		return end * 0.5f * (Mathf.Sqrt(1 - value * value) + 1) + start;
+	}
+
+	/* GFX47 MOD START */
+	private float easeInBounce(float start, float end, float value){
+		end -= start;
+		float d = 1f;
+		return end - easeOutBounce(0, end, d-value) + start;
+	}
+	/* GFX47 MOD END */
+
+	/* GFX47 MOD START */
+	//private float bounce(float start, float end, float value){
+	private float easeOutBounce(float start, float end, float value){
+		value /= 1f;
+		end -= start;
+		if (value < (1 / 2.75f)){
+			return end * (7.5625f * value * value) + start;
+		}else if (value < (2 / 2.75f)){
+			value -= (1.5f / 2.75f);
+			return end * (7.5625f * (value) * value + .75f) + start;
+		}else if (value < (2.5 / 2.75)){
+			value -= (2.25f / 2.75f);
+			return end * (7.5625f * (value) * value + .9375f) + start;
+		}else{
+			value -= (2.625f / 2.75f);
+			return end * (7.5625f * (value) * value + .984375f) + start;
+		}
+	}
+	/* GFX47 MOD END */
+
+	/* GFX47 MOD START */
+	private float easeInOutBounce(float start, float end, float value){
+		end -= start;
+		float d = 1f;
+		if (value < d* 0.5f) return easeInBounce(0, end, value*2) * 0.5f + start;
+		else return easeOutBounce(0, end, value*2-d) * 0.5f + end*0.5f + start;
+	}
+	/* GFX47 MOD END */
+
+	private float easeInBack(float start, float end, float value){
+		end -= start;
+		value /= 1;
+		float s = 1.70158f;
+		return end * (value) * value * ((s + 1) * value - s) + start;
+	}
+
+	private float easeOutBack(float start, float end, float value){
+		float s = 1.70158f;
+		end -= start;
+		value = (value) - 1;
+		return end * ((value) * value * ((s + 1) * value + s) + 1) + start;
+	}
+
+	private float easeInOutBack(float start, float end, float value){
+		float s = 1.70158f;
+		end -= start;
+		value /= .5f;
+		if ((value) < 1){
+			s *= (1.525f);
+			return end * 0.5f * (value * value * (((s) + 1) * value - s)) + start;
+		}
+		value -= 2;
+		s *= (1.525f);
+		return end * 0.5f * ((value) * value * (((s) + 1) * value + s) + 2) + start;
+	}
+
+	private float punch(float amplitude, float value){
+		float s = 9;
+		if (value == 0){
+			return 0;
+		}
+		else if (value == 1){
+			return 0;
+		}
+		float period = 1 * 0.3f;
+		s = period / (2 * Mathf.PI) * Mathf.Asin(0);
+		return (amplitude * Mathf.Pow(2, -10 * value) * Mathf.Sin((value * 1 - s) * (2 * Mathf.PI) / period));
+    }
+	
+	/* GFX47 MOD START */
+	private float easeInElastic(float start, float end, float value){
+		end -= start;
+		
+		float d = 1f;
+		float p = d * .3f;
+		float s = 0;
+		float a = 0;
+		
+		if (value == 0) return start;
+		
+		if ((value /= d) == 1) return start + end;
+		
+		if (a == 0f || a < Mathf.Abs(end)){
+			a = end;
+			s = p / 4;
+			}else{
+			s = p / (2 * Mathf.PI) * Mathf.Asin(end / a);
+		}
+		
+		return -(a * Mathf.Pow(2, 10 * (value-=1)) * Mathf.Sin((value * d - s) * (2 * Mathf.PI) / p)) + start;
+	}		
+	/* GFX47 MOD END */
+
+	/* GFX47 MOD START */
+	//private float elastic(float start, float end, float value){
+	private float easeOutElastic(float start, float end, float value){
+	/* GFX47 MOD END */
+		//Thank you to rafael.marteleto for fixing this as a port over from Pedro's UnityTween
+		end -= start;
+		
+		float d = 1f;
+		float p = d * .3f;
+		float s = 0;
+		float a = 0;
+		
+		if (value == 0) return start;
+		
+		if ((value /= d) == 1) return start + end;
+		
+		if (a == 0f || a < Mathf.Abs(end)){
+			a = end;
+			s = p * 0.25f;
+			}else{
+			s = p / (2 * Mathf.PI) * Mathf.Asin(end / a);
+		}
+		
+		return (a * Mathf.Pow(2, -10 * value) * Mathf.Sin((value * d - s) * (2 * Mathf.PI) / p) + end + start);
+	}		
+	
+	/* GFX47 MOD START */
+	private float easeInOutElastic(float start, float end, float value){
+		end -= start;
+		
+		float d = 1f;
+		float p = d * .3f;
+		float s = 0;
+		float a = 0;
+		
+		if (value == 0) return start;
+		
+		if ((value /= d*0.5f) == 2) return start + end;
+		
+		if (a == 0f || a < Mathf.Abs(end)){
+			a = end;
+			s = p / 4;
+			}else{
+			s = p / (2 * Mathf.PI) * Mathf.Asin(end / a);
+		}
+		
+		if (value < 1) return -0.5f * (a * Mathf.Pow(2, 10 * (value-=1)) * Mathf.Sin((value * d - s) * (2 * Mathf.PI) / p)) + start;
+		return a * Mathf.Pow(2, -10 * (value-=1)) * Mathf.Sin((value * d - s) * (2 * Mathf.PI) / p) * 0.5f + end + start;
+	}		
+	/* GFX47 MOD END */
+	
+	#endregion	
+	
+	#region Deprecated and Renamed
+	/*
+	public static void audioFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: audioFrom() has been renamed to AudioFrom().");}
+	public static void audioTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: audioTo() has been renamed to AudioTo().");}
+	public static void colorFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: colorFrom() has been renamed to ColorFrom().");}
+	public static void colorTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: colorTo() has been renamed to ColorTo().");}
+	public static void fadeFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: fadeFrom() has been renamed to FadeFrom().");}
+	public static void fadeTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: fadeTo() has been renamed to FadeTo().");}
+	public static void lookFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: lookFrom() has been renamed to LookFrom().");}
+	public static void lookFromWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: lookFromWorld() has been deprecated. Please investigate LookFrom().");}
+	public static void lookTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: lookTo() has been renamed to LookTo().");}
+	public static void lookToUpdate(GameObject target, Hashtable args){Debug.LogError("iTween Error: lookToUpdate() has been renamed to LookUpdate().");}
+	public static void lookToUpdateWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: lookToUpdateWorld() has been deprecated. Please investigate LookUpdate().");}
+	public static void moveAdd(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveAdd() has been renamed to MoveAdd().");}
+	public static void moveAddWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveAddWorld() has been deprecated. Please investigate MoveAdd().");}
+	public static void moveBy(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveBy() has been renamed to MoveBy().");}
+	public static void moveByWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveAddWorld() has been deprecated. Please investigate MoveAdd().");}
+	public static void moveFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveFrom() has been renamed to MoveFrom().");}
+	public static void moveFromWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveFromWorld() has been deprecated. Please investigate MoveFrom().");}
+	public static void moveTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveTo() has been renamed to MoveTo().");}
+	public static void moveToBezier(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveToBezier() has been deprecated. Please investigate MoveTo() and the "path" property.");}
+	public static void moveToBezierWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveToBezierWorld() has been deprecated. Please investigate MoveTo() and the "path" property.");}
+	public static void moveToUpdate(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveToUpdate() has been renamed to MoveUpdate().");}
+	public static void moveToUpdateWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveToUpdateWorld() has been deprecated. Please investigate MoveUpdate().");}
+	public static void moveToWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: moveToWorld() has been deprecated. Please investigate MoveTo().");}
+	public static void punchPosition(GameObject target, Hashtable args){Debug.LogError("iTween Error: punchPosition() has been renamed to PunchPosition().");}
+	public static void punchPositionWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: punchPositionWorld() has been deprecated. Please investigate PunchPosition().");}	
+	public static void punchRotation(GameObject target, Hashtable args){Debug.LogError("iTween Error: punchPosition() has been renamed to PunchRotation().");}
+	public static void punchRotationWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: punchRotationWorld() has been deprecated. Please investigate PunchRotation().");}	
+	public static void punchScale(GameObject target, Hashtable args){Debug.LogError("iTween Error: punchScale() has been renamed to PunchScale().");}
+	public static void rotateAdd(GameObject target, Hashtable args){Debug.LogError("iTween Error: rotateAdd() has been renamed to RotateAdd().");}
+	public static void rotateBy(GameObject target, Hashtable args){Debug.LogError("iTween Error: rotateBy() has been renamed to RotateBy().");}
+	public static void rotateByWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: rotateByWorld() has been deprecated. Please investigate RotateBy().");}
+	public static void rotateFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: rotateFrom() has been renamed to RotateFrom().");}
+	public static void rotateTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: rotateTo() has been renamed to RotateTo().");}
+	public static void scaleAdd(GameObject target, Hashtable args){Debug.LogError("iTween Error: scaleAdd() has been renamed to ScaleAdd().");}
+	public static void scaleBy(GameObject target, Hashtable args){Debug.LogError("iTween Error: scaleBy() has been renamed to ScaleBy().");}
+	public static void scaleFrom(GameObject target, Hashtable args){Debug.LogError("iTween Error: scaleFrom() has been renamed to ScaleFrom().");}
+	public static void scaleTo(GameObject target, Hashtable args){Debug.LogError("iTween Error: scaleTo() has been renamed to ScaleTo().");}
+	public static void shake(GameObject target, Hashtable args){Debug.LogError("iTween Error: scale() has been deprecated. Please investigate ShakePosition(), ShakeRotation() and ShakeScale().");}
+	public static void shakeWorld(GameObject target, Hashtable args){Debug.LogError("iTween Error: shakeWorld() has been deprecated. Please investigate ShakePosition(), ShakeRotation() and ShakeScale().");}
+	public static void stab(GameObject target, Hashtable args){Debug.LogError("iTween Error: stab() has been renamed to Stab().");}
+	public static void stop(GameObject target, Hashtable args){Debug.LogError("iTween Error: stop() has been renamed to Stop().");}
+	public static void stopType(GameObject target, Hashtable args){Debug.LogError("iTween Error: stopType() has been deprecated. Please investigate Stop().");}
+	public static void tweenCount(GameObject target, Hashtable args){Debug.LogError("iTween Error: tweenCount() has been deprecated. Please investigate Count().");}
+	*/
+	#endregion
+} 

+ 8 - 0
Assets/Plugins/Pixelplacement/iTween/iTween.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 521257714fc9e437a9163df2d37f2ea2
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 5 - 0
Assets/Plugins/SmartLevelsMap.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 030d51eeee417b540a2266d32e429d56
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/SmartLevelsMap/Demo.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 61f8b751ac09f874ab47b22ccf884af0
+folderAsset: yes
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Level01.unity


+ 6 - 0
Assets/Plugins/SmartLevelsMap/Demo/Level01.unity.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: 22f38cd40be785148ad46c58851aa289
+labels:
+- Level
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Level02.unity


+ 6 - 0
Assets/Plugins/SmartLevelsMap/Demo/Level02.unity.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: 851596c571901a14191e71e18b90bff8
+labels:
+- Level
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Level03.unity


+ 6 - 0
Assets/Plugins/SmartLevelsMap/Demo/Level03.unity.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: 7390eccc31451644aa1a3d0bd1373b00
+labels:
+- Level
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/SmartLevelsMap/Demo/Prefabs.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: c98cbe6d86ca76a46823f4471de2302a
+folderAsset: yes
+DefaultImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/ApiTestGUI.prefab


+ 4 - 0
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/ApiTestGUI.prefab.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 2dbde5ef7c93a4ad5ba11ccffbfc7e19
+NativeFormatImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Character.prefab


+ 6 - 0
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Character.prefab.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: b08b1744d4e29eb46a4e670ad7bf5c13
+labels:
+- character
+NativeFormatImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Level.prefab


+ 8 - 0
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/Level.prefab.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 105903d664c39294e926aed54de8b6c8
+labels:
+- Level
+- Star
+- candycrushsaga
+NativeFormatImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/LevelsMap.prefab


+ 8 - 0
Assets/Plugins/SmartLevelsMap/Demo/Prefabs/LevelsMap.prefab.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: acb13cf7f83bfd34ab58c92ae4926c80
+labels:
+- Level
+- Map
+- Star
+NativeFormatImporter:
+  userData: 

BIN
Assets/Plugins/SmartLevelsMap/Demo/demo.unity


+ 6 - 0
Assets/Plugins/SmartLevelsMap/Demo/demo.unity.meta

@@ -0,0 +1,6 @@
+fileFormatVersion: 2
+guid: 1bc674194230b5642987276186d67776
+labels:
+- Map
+DefaultImporter:
+  userData: 

+ 5 - 0
Assets/Plugins/SmartLevelsMap/Scripts.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: fda189b78ee354d4e9aabb825245358a
+folderAsset: yes
+DefaultImporter:
+  userData: 

+ 187 - 0
Assets/Plugins/SmartLevelsMap/Scripts/ApiTest.cs

@@ -0,0 +1,187 @@
+using System;
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class ApiTest : MonoBehaviour, IMapProgressManager
+    {
+        private int _levelNumber = 1;
+        private int _starsCount = 1;
+        private bool _isShow;
+
+        public DemoButton YesButton;
+        public DemoButton NoButton;
+        public GameObject ConfirmationView;
+        public int SelectedLevelNumber;
+
+        public void Awake()
+        {
+            //Uncomment to set this script as IMapProgressManager
+            //LevelsMap.OverrideMapProgressManager(this);
+        }
+
+        #region Events
+
+        public void OnEnable()
+        {
+            Debug.Log("Subscribe to events.");
+            LevelsMap.LevelSelected += OnLevelSelected;
+            LevelsMap.LevelReached += OnLevelReached;
+            //            YesButton.Click += OnYesButtonClick;
+            //            NoButton.Click += OnNoButtonClick;
+        }
+
+        public void OnDisable()
+        {
+            Debug.Log("Unsubscribe from events.");
+            LevelsMap.LevelSelected -= OnLevelSelected;
+            LevelsMap.LevelReached -= OnLevelReached;
+            //           YesButton.Click -= OnYesButtonClick;
+            //           NoButton.Click -= OnNoButtonClick;
+        }
+
+        private void OnLevelReached(object sender, LevelReachedEventArgs e)
+        {
+            Debug.Log(string.Format("Level {0} reached.", e.Number));
+        }
+
+        #endregion
+
+        #region Api test
+        public void OnGUI()
+        {
+            GUILayout.BeginVertical();
+
+            DrawToggleShowButton();
+
+            if (_isShow)
+            {
+                DrawInputParameters();
+                if (GUILayout.Button("Complete all  levels"))
+                {
+                    for (int i = 1; i < GameObject.Find("Levels").transform.childCount; i++)
+                    {
+                       // LevelsMap.CompleteLevel(i, _starsCount);
+						SaveLevelStarsCount(i, _starsCount);
+                    }
+                }
+
+                if (GUILayout.Button("Complete level"))
+                {
+                    if (LevelsMap.IsStarsEnabled())
+                        LevelsMap.CompleteLevel(_levelNumber, _starsCount);
+                    else
+                        LevelsMap.CompleteLevel(_levelNumber);
+                }
+
+                if (GUILayout.Button("Go to level"))
+                {
+                    LevelsMap.GoToLevel(_levelNumber);
+                }
+
+                if (GUILayout.Button("Is level locked"))
+                {
+                    bool isLocked = LevelsMap.IsLevelLocked(_levelNumber);
+                    Debug.Log(string.Format("Level {0} is {1}",
+                        _levelNumber,
+                        isLocked ? "locked" : "not locked"));
+                }
+
+                if (GUILayout.Button("Clear all progress"))
+                {
+                    LevelsMap.ClearAllProgress();
+                }
+            }
+
+            GUILayout.EndVertical();
+        }
+
+        private void DrawToggleShowButton()
+        {
+            if (!_isShow)
+            {
+                if (GUILayout.Button("Show API tests"))
+                {
+                    _isShow = true;
+                }
+            }
+            if (_isShow)
+            {
+                if (GUILayout.Button("Hide API tests"))
+                {
+                    _isShow = false;
+                }
+            }
+        }
+
+        private void DrawInputParameters()
+        {
+            GUILayout.BeginHorizontal();
+
+            GUILayout.Label("Level number:");
+            string strLevelNumber = GUILayout.TextField(_levelNumber.ToString(), 10, GUILayout.Width(80));
+            int.TryParse(strLevelNumber, out _levelNumber);
+
+            if (LevelsMap.IsStarsEnabled())
+            {
+                GUILayout.Label("Stars count:");
+                string strStarsCount = GUILayout.TextField(_starsCount.ToString(), 10, GUILayout.Width(80));
+                int.TryParse(strStarsCount, out _starsCount);
+            }
+
+            GUILayout.EndHorizontal();
+        }
+
+        #endregion
+
+        #region IMapProgressManager
+		        private string GetLevelKey(int number)
+        {
+            return string.Format("Level.{0:000}.StarsCount", number);
+        }
+
+        public int LoadLevelStarsCount(int level)
+        {
+            return level > 10 ? 0 : (level % 3 + 1);
+        }
+
+        public void SaveLevelStarsCount(int level, int starsCount)
+        {
+            Debug.Log(string.Format("Stars count {0} of level {1} saved.", starsCount, level));
+			            PlayerPrefs.SetInt(GetLevelKey(level), starsCount);
+
+        }
+
+        public void ClearLevelProgress(int level)
+        {
+
+        }
+
+        #endregion
+
+        #region Confirmation demo
+
+        private void OnLevelSelected(object sender, LevelReachedEventArgs e)
+        {
+            if (LevelsMap.GetIsConfirmationEnabled())
+            {
+                SelectedLevelNumber = e.Number;
+                // ConfirmationView.SetActive(true);
+            }
+        }
+
+        private void OnNoButtonClick(object sender, EventArgs e)
+        {
+            ConfirmationView.SetActive(false);
+        }
+
+        private void OnYesButtonClick(object sender, EventArgs e)
+        {
+            ConfirmationView.SetActive(false);
+            LevelsMap.GoToLevel(SelectedLevelNumber);
+        }
+
+        #endregion
+
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/ApiTest.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: e2ec10b987e2cff409cea5ddd4fb50da
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 18 - 0
Assets/Plugins/SmartLevelsMap/Scripts/DemoButton.cs

@@ -0,0 +1,18 @@
+using System;
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class DemoButton : MonoBehaviour 
+    {
+
+        public event EventHandler Click;
+
+        public void OnMouseUpAsButton()
+        {
+            if (Click != null)
+                Click(this, EventArgs.Empty);
+        }
+
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/DemoButton.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 302a545f3f4a72245ab021d70e14cbab
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 9 - 0
Assets/Plugins/SmartLevelsMap/Scripts/IMapProgressManager.cs

@@ -0,0 +1,9 @@
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public interface IMapProgressManager
+    {
+        int LoadLevelStarsCount(int level);
+        void SaveLevelStarsCount(int level, int starsCount);
+        void ClearLevelProgress(int level);
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/IMapProgressManager.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 62df94e34be122a4b9e74e36c1eaa3db
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 14 - 0
Assets/Plugins/SmartLevelsMap/Scripts/LevelReachedEventArgs.cs

@@ -0,0 +1,14 @@
+using System;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class LevelReachedEventArgs : EventArgs
+    {
+        public int Number { get; private set; }
+
+        public LevelReachedEventArgs(int number)
+        {
+            Number = number;
+        }
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/LevelReachedEventArgs.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ab56039526d6a7f40889fa69b66f3dff
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 256 - 0
Assets/Plugins/SmartLevelsMap/Scripts/LevelsMap.cs

@@ -0,0 +1,256 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class LevelsMap : MonoBehaviour
+    {
+        private static LevelsMap _instance;
+        private static IMapProgressManager _mapProgressManager = new PlayerPrefsMapProgressManager();
+
+        public bool IsGenerated;
+
+        public MapLevel MapLevelPrefab;
+        public Transform CharacterPrefab;
+        public int Count = 10;
+
+        public WaypointsMover WaypointsMover;
+        public MapLevel CharacterLevel;
+        public TranslationType TranslationType;
+
+        public bool StarsEnabled;
+		public StarsType StarsType;
+
+		public bool ScrollingEnabled;
+		public MapCamera MapCamera;
+
+        public bool IsClickEnabled;
+        public bool IsConfirmationEnabled;
+
+        public void Awake()
+        {
+            _instance = this;
+        }
+
+        public void OnDestroy()
+        {
+            _instance = null;
+        }
+
+        public void Start()
+        {
+            if (IsGenerated)
+            {
+                Reset();
+            }
+        }
+
+        private List<MapLevel> GetMapLevels()
+        {
+            return FindObjectsOfType<MapLevel>().OrderBy(ml => ml.Number).ToList();
+        }
+
+		private void Reset()
+		{
+            UpdateMapLevels();
+			PlaceCharacterToLastUnlockedLevel();
+			SetCameraToCharacter();
+		}
+
+        private void UpdateMapLevels()
+        {
+            foreach (MapLevel mapLevel in GetMapLevels())
+            {
+                mapLevel.UpdateState(
+                    _mapProgressManager.LoadLevelStarsCount(mapLevel.Number),
+                    IsLevelLocked(mapLevel.Number));
+            }
+        }
+
+        private void PlaceCharacterToLastUnlockedLevel()
+		{
+            int lastUnlockedNumber = GetMapLevels().Where(l => !l.IsLocked).Select(l => l.Number).Max();
+			TeleportToLevelInternal(lastUnlockedNumber, true);
+		}
+			                                                       	
+		private void SetCameraToCharacter()
+		{
+			MapCamera mapCamera = FindObjectOfType<MapCamera>();
+			if(mapCamera != null)
+				mapCamera.SetPosition(WaypointsMover.transform.position);
+		}
+
+        #region Events
+
+        public static event EventHandler<LevelReachedEventArgs> LevelSelected;
+        public static event EventHandler<LevelReachedEventArgs> LevelReached;
+
+        #endregion
+
+        #region Static API
+
+		public static void CompleteLevel(int number)
+		{
+		    CompleteLevelInternal(number, 1);
+		}
+
+        public static void CompleteLevel(int number, int starsCount)
+        {
+            CompleteLevelInternal(number, starsCount);
+        }
+
+        internal static void OnLevelSelected(int number)
+        {
+            if (LevelSelected != null && !IsLevelLocked(number))  //need to fix in the map plugin
+                LevelSelected(_instance, new LevelReachedEventArgs(number));
+
+            if (!_instance.IsConfirmationEnabled)
+                GoToLevel(number);
+        }
+
+        public static void GoToLevel(int number)
+        {
+            switch (_instance.TranslationType)
+            {
+                case TranslationType.Teleportation:
+                    _instance.TeleportToLevelInternal(number, false);
+                    break;
+                case TranslationType.Walk:
+                    _instance.WalkToLevelInternal(number);
+                    break;
+            }
+        }
+
+        public static bool IsLevelLocked(int number)
+        {
+            return number > 1 && _mapProgressManager.LoadLevelStarsCount(number - 1) == 0;
+        }
+
+        public static void OverrideMapProgressManager(IMapProgressManager mapProgressManager)
+        {
+            _mapProgressManager = mapProgressManager;
+        }
+
+        public static void ClearAllProgress()
+        {
+            _instance.ClearAllProgressInternal();
+        }
+
+        public static bool IsStarsEnabled()
+        {
+            return _instance.StarsEnabled;
+        }
+
+        public static bool GetIsClickEnabled()
+        {
+            return _instance.IsClickEnabled;
+        }
+
+        public static bool GetIsConfirmationEnabled()
+        {
+            return _instance.IsConfirmationEnabled;
+        }
+
+        #endregion
+
+        private static void CompleteLevelInternal(int number, int starsCount)
+        {
+            if(IsLevelLocked(number))
+            {
+                Debug.Log(string.Format("Can't complete locked level {0}.", number));
+            }
+            else if (starsCount < 1 || starsCount > 3)
+            {
+                Debug.Log(string.Format("Can't complete level {0}. Invalid stars count {1}.", number, starsCount));
+            }
+            else
+            {
+                int curStarsCount = _mapProgressManager.LoadLevelStarsCount(number);
+                int maxStarsCount = Mathf.Max(curStarsCount, starsCount);
+                _mapProgressManager.SaveLevelStarsCount(number, maxStarsCount);
+
+                if (_instance != null)
+                    _instance.UpdateMapLevels();
+            }
+        }
+
+        private void TeleportToLevelInternal(int number, bool isQuietly)
+        {
+            MapLevel mapLevel = GetLevel(number);
+            if (mapLevel.IsLocked)
+            {
+                Debug.Log(string.Format("Can't jump to locked level number {0}.", number));
+            }
+            else
+            {
+                WaypointsMover.transform.position = mapLevel.PathPivot.transform.position;   //need to fix in the map plugin
+                CharacterLevel = mapLevel;
+                if (!isQuietly)
+                    RaiseLevelReached(number);
+            }
+        }
+
+        private void WalkToLevelInternal(int number)
+        {
+            MapLevel mapLevel = GetLevel(number);
+            if (mapLevel.IsLocked)
+            {
+                Debug.Log(string.Format("Can't go to locked level number {0}.", number));
+            }
+            else
+            {
+                WaypointsMover.Move(CharacterLevel.PathPivot, mapLevel.PathPivot,
+                    () =>
+                    {
+                        RaiseLevelReached(number);
+                        CharacterLevel = mapLevel;
+                    });
+            }
+        }
+
+        private void RaiseLevelReached(int number)
+        {
+            MapLevel mapLevel = GetLevel(number);
+            if (!string.IsNullOrEmpty(mapLevel.SceneName))
+                Application.LoadLevel(mapLevel.SceneName);
+
+            if (LevelReached != null)
+                LevelReached(this, new LevelReachedEventArgs(number));
+        }
+
+        private MapLevel GetLevel(int number)
+        {
+            return GetMapLevels().SingleOrDefault(ml => ml.Number == number);
+        }
+
+        private void ClearAllProgressInternal()
+        {
+            foreach (MapLevel mapLevel in GetMapLevels())
+                _mapProgressManager.ClearLevelProgress(mapLevel.Number);
+            Reset();
+        }
+
+        public void SetStarsEnabled(bool bEnabled)
+        {
+            StarsEnabled = bEnabled;
+            int starsCount = 0;
+            foreach (MapLevel mapLevel in GetMapLevels())
+            {
+                mapLevel.UpdateStars(starsCount);
+                starsCount = (starsCount + 1)%4;
+                mapLevel.StarsHoster.gameObject.SetActive(bEnabled);
+                mapLevel.SolidStarsHoster.gameObject.SetActive(bEnabled);
+            }
+        }
+
+        public void SetStarsType(StarsType starsType)
+        {
+            StarsType = starsType;
+            foreach (MapLevel mapLevel in GetMapLevels())
+                mapLevel.UpdateStarsType(starsType);
+        }
+
+    }
+}

+ 14 - 0
Assets/Plugins/SmartLevelsMap/Scripts/LevelsMap.cs.meta

@@ -0,0 +1,14 @@
+fileFormatVersion: 2
+guid: 5392c69f20649594691b44cf7bc61c77
+labels:
+- Map
+- Level
+- Star
+- candycrushsaga
+- character
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 90 - 0
Assets/Plugins/SmartLevelsMap/Scripts/MapCamera.cs

@@ -0,0 +1,90 @@
+using UnityEngine;
+using UnityEngine.EventSystems;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class MapCamera : MonoBehaviour
+    {
+        private Vector2 _prevPosition;
+        private Transform _transform;
+
+		public Camera Camera;
+        public Bounds Bounds;
+
+        public void Awake()
+        {
+            _transform = transform;
+        }
+
+        public void OnDrawGizmos()
+        {
+            Gizmos.DrawWireCube(Bounds.center, Bounds.size);
+        }
+
+        public void Update()
+        {
+#if (UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR
+			HandleTouchInput();
+#else
+			HandleMouseInput();
+#endif
+        }
+
+		private void HandleTouchInput()
+		{
+         	if(Input.touchCount == 1)
+			{
+				Touch touch = Input.GetTouch(0);
+				if(touch.phase == TouchPhase.Began)
+				{
+					_prevPosition = touch.position;
+				}
+				else if(touch.phase == TouchPhase.Moved)
+				{
+					Vector2 curPosition = touch.position;
+					MoveCamera(_prevPosition, curPosition);
+					_prevPosition = curPosition;
+				}
+			}
+        }
+
+		private void HandleMouseInput()
+		{
+			if (Input.GetMouseButtonDown(0))
+				_prevPosition = Input.mousePosition;
+			
+			if (Input.GetMouseButton(0))
+			{
+				Vector2 curMousePosition = Input.mousePosition;
+				MoveCamera(_prevPosition, curMousePosition);
+				_prevPosition = curMousePosition;
+			}
+		}
+
+        private void MoveCamera(Vector2 prevPosition, Vector2 curPosition)
+        {
+            if (EventSystem.current.IsPointerOverGameObject(-1)) return;
+
+			SetPosition(
+				transform.localPosition + 
+			    (Camera.ScreenToWorldPoint(prevPosition) - Camera.ScreenToWorldPoint(curPosition)));
+        }
+
+		public void SetPosition(Vector2 position)
+		{
+			Vector2 validatedPosition = ApplyBounds(position);
+			_transform.position = new Vector3(validatedPosition.x, validatedPosition.y, _transform.position.z);
+        }
+
+		private Vector2 ApplyBounds(Vector2 position)
+		{
+			float cameraHeight = Camera.orthographicSize*2f;
+			float cameraWidth = (Screen.width * 1f/Screen.height)*cameraHeight;
+			position.x = Mathf.Max(position.x, Bounds.min.x + cameraWidth/2f);
+			position.y = Mathf.Max(position.y, Bounds.min.y + cameraHeight/2f);
+			position.x = Mathf.Min(position.x, Bounds.max.x - cameraWidth/2f);
+			position.y = Mathf.Min(position.y, Bounds.max.y - cameraHeight/2f);
+			return position;
+		}
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/MapCamera.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 80628bbe88a261d45916a83f4edb9346
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 111 - 0
Assets/Plugins/SmartLevelsMap/Scripts/MapLevel.cs

@@ -0,0 +1,111 @@
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class MapLevel : MonoBehaviour 
+    {
+        private Vector3 _originalScale;
+        private bool _isScaled;
+        public float OverScale = 1.05f;
+        public float ClickScale = 0.95f;
+
+        public int Number;
+        public bool IsLocked;
+        public Transform Lock;
+        public Transform PathPivot;
+        public Object LevelScene;
+        public string SceneName;
+
+		public int StarsCount;
+        public Transform StarsHoster;
+		public Transform Star1;
+		public Transform Star2;
+		public Transform Star3;
+
+        public Transform SolidStarsHoster;
+		public Transform SolidStars0;
+		public Transform SolidStars1;
+		public Transform SolidStars2;
+		public Transform SolidStars3;
+
+        public void Awake()
+        {
+            _originalScale = transform.localScale;
+        }
+
+        #region Enable click
+
+        public void OnMouseEnter()
+        {
+            if(LevelsMap.GetIsClickEnabled())
+                Scale(OverScale);
+        }
+
+        public void OnMouseDown()
+        {
+            if (LevelsMap.GetIsClickEnabled())
+                Scale(ClickScale);
+        }
+
+        public void OnMouseExit()
+        {
+            if (LevelsMap.GetIsClickEnabled())
+                ResetScale();
+        }
+
+        private void Scale(float scaleValue)
+        {
+            transform.localScale = _originalScale * scaleValue;
+            _isScaled = true;
+        }
+
+        public void OnDisable()
+        {
+            if (LevelsMap.GetIsClickEnabled())
+                ResetScale();
+        }
+
+        public void OnMouseUpAsButton()
+        {
+            if (LevelsMap.GetIsClickEnabled())
+            {
+                ResetScale();
+                LevelsMap.OnLevelSelected(Number);
+            }
+        }
+
+        private void ResetScale()
+        {
+            if (_isScaled)
+                transform.localScale = _originalScale;
+        }
+
+        #endregion
+
+        public void UpdateState(int starsCount, bool isLocked)
+        {
+            StarsCount = starsCount;
+            UpdateStars(starsCount);
+            IsLocked = isLocked;
+            Lock.gameObject.SetActive(isLocked);
+        }
+
+        public void UpdateStars(int starsCount)
+        {
+            Star1.gameObject.SetActive(starsCount >= 1);
+            Star2.gameObject.SetActive(starsCount >= 2);
+            Star3.gameObject.SetActive(starsCount >= 3);
+
+            SolidStars0.gameObject.SetActive(starsCount == 0);
+            SolidStars1.gameObject.SetActive(starsCount == 1);
+            SolidStars2.gameObject.SetActive(starsCount == 2);
+            SolidStars3.gameObject.SetActive(starsCount == 3);
+        }
+
+        public void UpdateStarsType(StarsType starsType) 
+        {
+            StarsHoster.gameObject.SetActive(starsType == StarsType.Separated);
+            SolidStarsHoster.gameObject.SetActive(starsType == StarsType.Solid);
+        }
+    }
+}

+ 11 - 0
Assets/Plugins/SmartLevelsMap/Scripts/MapLevel.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 3b6a9bbe0be36eb4bb8283ff30b0961f
+labels:
+- Level
+- Star
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 91 - 0
Assets/Plugins/SmartLevelsMap/Scripts/Path.cs

@@ -0,0 +1,91 @@
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+	public class Path : MonoBehaviour
+	{
+        [HideInInspector]
+		public List<Transform> Waypoints = new List<Transform>();
+
+        [HideInInspector]
+        public bool IsCurved;
+
+        [HideInInspector]
+        public Color GizmosColor = Color.white;
+
+        [HideInInspector]
+	    public float GizmosRadius = 10.0f;
+
+        public void OnDrawGizmos()
+		{
+			Gizmos.color = GizmosColor;
+			for (int i = 0; i < Waypoints.Count; i++)
+			{
+                Gizmos.DrawSphere(Waypoints[i].transform.position, GizmosRadius);
+			    if (i < Waypoints.Count - 1)
+			        DrawPart(i);
+			}
+		}
+
+		private void DrawPart(int ind)
+		{
+		    if (IsCurved)
+		    {
+		        Vector2[] devidedPoints = GetDivededPoints(ind);
+		        for (int i = 0; i < devidedPoints.Length - 1; i++)
+		            Gizmos.DrawLine(devidedPoints[i], devidedPoints[i + 1]);
+		    }
+		    else
+		    {
+                Gizmos.DrawLine(Waypoints[ind].position, Waypoints[(ind + 1) % Waypoints.Count].position);
+		    }
+		}
+
+	    private Vector2[] GetDivededPoints(int ind)
+	    {
+	        Vector2[] points = new Vector2[11];
+	        int pointInd = 0;
+	        int[] indexes = GetSplinePointIndexes(ind, true);
+	        Vector2 a = Waypoints[indexes[0]].transform.position;
+	        Vector2 b = Waypoints[indexes[1]].transform.position;
+	        Vector2 c = Waypoints[indexes[2]].transform.position;
+	        Vector2 d = Waypoints[indexes[3]].transform.position;
+	        for (float t = 0; t <= 1.001f; t += 0.1f)
+	            points[pointInd++] = SplineCurve.GetPoint(a, b, c, d, t);
+	        return points;
+	    }
+
+	    public int[] GetSplinePointIndexes(int baseInd, bool isForwardDirection)
+	    {
+	        int dInd = isForwardDirection ? 1 : -1;
+	        return new int[]
+	        {
+	            Mathf.Clamp(baseInd - dInd, 0, Waypoints.Count - 1),
+	            baseInd,
+	            Mathf.Clamp(baseInd + dInd, 0, Waypoints.Count - 1),
+	            Mathf.Clamp(baseInd + 2*dInd, 0, Waypoints.Count - 1)
+	        };
+	    }
+
+	    public float GetLength()
+        {
+            float length = 0;
+            for (int i = 0; i < Waypoints.Count; i++)
+            {
+                Vector2 p1 = Waypoints[i].transform.position;
+                Vector2 p2 = Waypoints[(i + 1) % Waypoints.Count].transform.position;
+                length += Vector2.Distance(p1, p2);
+            }
+            return length;
+        }
+
+	    public float GetLength(int startInd)
+	    {
+	        return Vector2.Distance(
+	            Waypoints[startInd].transform.position,
+                Waypoints[(startInd + 1) % Waypoints.Count].transform.position);
+	    }
+
+	}
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/Path.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ae0148cda72dd714f8d441a8654c2943
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 28 - 0
Assets/Plugins/SmartLevelsMap/Scripts/PlayerPrefsMapProgressManager.cs

@@ -0,0 +1,28 @@
+
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class PlayerPrefsMapProgressManager : IMapProgressManager
+    {
+        private string GetLevelKey(int number)
+        {
+            return string.Format("Level.{0:000}.StarsCount", number);
+        }
+
+        public int LoadLevelStarsCount(int level)
+        {
+            return PlayerPrefs.GetInt(GetLevelKey(level), 0);
+        }
+
+        public void SaveLevelStarsCount(int level, int starsCount)
+        {
+            PlayerPrefs.SetInt(GetLevelKey(level), starsCount);
+        }
+
+        public void ClearLevelProgress(int level)
+        {
+            PlayerPrefs.DeleteKey(GetLevelKey(level));
+        }
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/PlayerPrefsMapProgressManager.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 3cc1fed7700565c45a83b6181190c950
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 39 - 0
Assets/Plugins/SmartLevelsMap/Scripts/SplineCurve.cs

@@ -0,0 +1,39 @@
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+	public class SplineCurve
+	{
+		private readonly Vector2[] _points;
+
+		public SplineCurve()
+		{
+			_points = new Vector2[4];
+		}
+
+		public void ApplyPoints(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4)
+		{
+			_points[0] = p1;
+			_points[1] = p2;
+			_points[2] = p3;
+			_points[3] = p4;
+		}
+
+		public Vector2 GetPoint(float t)
+		{
+			return GetPoint(_points[0], _points[1], _points[2], _points[3], t);
+		}
+
+		public static Vector2 GetPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 d, float t)
+		{
+			//t==0, ret b
+			//t==1, ret c
+			return .5f*(
+				(-a + 3f*b - 3f*c + d)*(t*t*t)
+				+ (2f*a - 5f*b + 4f*c - d)*(t*t)
+				+ (-a + c)*t
+				+ 2f*b
+				);	
+		}
+	}
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/SplineCurve.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c45d0a3564f50f34cadccaae85cdd283
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 9 - 0
Assets/Plugins/SmartLevelsMap/Scripts/StarsType.cs

@@ -0,0 +1,9 @@
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+	public enum StarsType
+	{
+		Separated,
+		Solid
+	}
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/StarsType.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: bda080f29ff064c999b72722c80d248b
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 43 - 0
Assets/Plugins/SmartLevelsMap/Scripts/TestLevelGUI.cs

@@ -0,0 +1,43 @@
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public class TestLevelGUI : MonoBehaviour
+    {
+        public int LevelNumber;
+        public void OnGUI()
+        {
+            GUILayout.BeginVertical();
+
+            if (GUILayout.Button("Complete with 1 star"))
+            {
+                LevelsMap.CompleteLevel(LevelNumber, 1);
+                GoBack();
+            }
+
+            if (GUILayout.Button("Complete with 2 star"))
+            {
+                LevelsMap.CompleteLevel(LevelNumber, 2);
+                GoBack();
+            }
+
+            if (GUILayout.Button("Complete with 3 star"))
+            {
+                LevelsMap.CompleteLevel(LevelNumber, 3);
+                GoBack();
+            }
+
+            if (GUILayout.Button("Back"))
+            {
+                GoBack();
+            }
+
+            GUILayout.EndVertical();
+        }
+
+        private void GoBack()
+        {
+            Application.LoadLevel("demo");
+        }
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/TestLevelGUI.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 236018e0ca0074e4fb1757f2db2b5a17
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 9 - 0
Assets/Plugins/SmartLevelsMap/Scripts/TranslationType.cs

@@ -0,0 +1,9 @@
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+    public enum TranslationType
+    {
+        Teleportation,
+        Walk
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/TranslationType.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 1e4f144a5800fa744bcb63ca1bbf4e27
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 133 - 0
Assets/Plugins/SmartLevelsMap/Scripts/WaypointsMover.cs

@@ -0,0 +1,133 @@
+using System;
+using UnityEngine;
+
+namespace Assets.Plugins.SmartLevelsMap.Scripts
+{
+	public class WaypointsMover : MonoBehaviour
+	{
+	    private int _nextInd;
+        private int _finishInd;
+	    private Action _finishedAction;
+
+        private SplineCurve _splineCurve;
+        private float _splineT;
+        private float _partTime;
+        private Vector3 _precisePosition;
+	    private bool _isRunning;
+        private bool _isForwardDirection;
+
+        [HideInInspector]
+		public Path Path;
+
+        [HideInInspector]
+		public float Speed;
+
+		public void Start()
+		{
+		    if (Path.IsCurved)
+		    {
+		        _splineCurve = new SplineCurve();
+		        UpdateCurvePoints();
+		    }
+		}
+
+        public void Move(Transform from, Transform to, Action finishedAction)
+        {
+            if(_isRunning)
+                return;
+
+            _finishedAction = finishedAction;
+            _nextInd = Path.Waypoints.IndexOf(from);
+            _finishInd = Path.Waypoints.IndexOf(to);
+            _isForwardDirection = _finishInd > _nextInd;
+            transform.position = from.position;
+            _isRunning = true;
+            TakeNextWaypoint();
+        }
+
+	    public void Update()
+	    {
+	        if (_isRunning)
+	        {
+	            if (Path.IsCurved)
+	                UpdateCurved();
+	            else
+	                UpdateLinear();
+	        }
+	    }
+
+	    private void TakeNextWaypoint()
+	    {
+	        if (_nextInd == _finishInd)
+	        {
+	            _isRunning = false;
+	            _finishedAction();
+	        }
+	        else
+	        {
+	            _nextInd += _isForwardDirection ? 1 : -1;
+	        }
+
+	        if (Path.IsCurved)
+	            UpdateCurvePoints();
+	    }
+
+	    #region Linear
+	    private void UpdateLinear()
+	    {
+	        Transform waypoint = Path.Waypoints[_nextInd];
+            Vector3 direction = (waypoint.position - transform.position).normalized;
+            Vector3 nextPosition = transform.position + direction * Speed * Time.deltaTime;
+            if (Vector3.Distance(transform.position, waypoint.position) <=
+                Vector3.Distance(transform.position, nextPosition))
+	        {
+                transform.position = waypoint.position;
+                TakeNextWaypoint();
+	        }
+	        else
+	        {
+                transform.position = nextPosition;
+	        }
+	    }
+
+	    #endregion
+
+	    #region Curved
+	    private void UpdateCurved()
+	    {
+            _splineT += Time.deltaTime / _partTime;
+            if (_splineT > 1.0f)
+            {
+                _splineT = 0.0f;
+                TakeNextWaypoint();
+                UpdateCurvePoints();
+            }
+            else
+            {
+                Vector2 point = _splineCurve.GetPoint(_splineT);
+                transform.position = point;                
+            }
+	    }
+
+	    private void UpdateCurvePoints()
+	    {
+	        int dInd = _isForwardDirection ? 1 : -1;
+	        int[] indexes = Path.GetSplinePointIndexes((_nextInd - dInd + Path.Waypoints.Count)%Path.Waypoints.Count, _isForwardDirection);
+	        _splineCurve.ApplyPoints(
+	            Path.Waypoints[indexes[0]].transform.position,
+	            Path.Waypoints[indexes[1]].transform.position,
+	            Path.Waypoints[indexes[2]].transform.position,
+	            Path.Waypoints[indexes[3]].transform.position);
+	        _partTime = GetPartPassTime(_nextInd);
+	    }
+
+	    private float GetPartPassTime(int targetInd)
+	    {
+            int dInd = _isForwardDirection ? 1 : 0;
+	        return Path.GetLength((targetInd - dInd + Path.Waypoints.Count)%Path.Waypoints.Count)/Speed;
+	    }
+
+        #endregion
+
+    }
+}

+ 8 - 0
Assets/Plugins/SmartLevelsMap/Scripts/WaypointsMover.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: fc9b0fa61277a2c4a91d6c852f56d18b
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

Some files were not shown because too many files changed in this diff