├── ProjectSettings ├── ProjectVersion.txt ├── TagManager.asset ├── TimeManager.asset ├── AudioManager.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── DynamicsManager.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── NetworkManager.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── UnityAdsSettings.asset ├── Physics2DSettings.asset ├── ClusterInputManager.asset ├── EditorBuildSettings.asset └── UnityConnectSettings.asset ├── Assets ├── Resources │ ├── Box.png │ ├── Circle.png │ ├── Square.png │ ├── Scenes Build Setting.png │ ├── Box.png.meta │ ├── Scenes Build Setting.png.meta │ ├── Square.png.meta │ └── Circle.png.meta ├── Scenes │ ├── SceneA.unity │ ├── SceneB.unity │ ├── SceneC.unity │ ├── SceneInit.unity │ ├── SceneA.unity.meta │ ├── SceneB.unity.meta │ ├── SceneC.unity.meta │ └── SceneInit.unity.meta ├── Scenes.meta ├── Scripts.meta ├── Resources.meta └── Scripts │ ├── SceneInitialize.cs.meta │ ├── SceneTrigger.cs.meta │ ├── SceneManagerExample.cs.meta │ ├── SceneInitialize.cs │ ├── SceneTrigger.cs │ └── SceneManagerExample.cs ├── README.md └── .gitignore /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.3.0f4 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /Assets/Resources/Box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Resources/Box.png -------------------------------------------------------------------------------- /Assets/Resources/Circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Resources/Circle.png -------------------------------------------------------------------------------- /Assets/Resources/Square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Resources/Square.png -------------------------------------------------------------------------------- /Assets/Scenes/SceneA.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Scenes/SceneA.unity -------------------------------------------------------------------------------- /Assets/Scenes/SceneB.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Scenes/SceneB.unity -------------------------------------------------------------------------------- /Assets/Scenes/SceneC.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Scenes/SceneC.unity -------------------------------------------------------------------------------- /Assets/Scenes/SceneInit.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Scenes/SceneInit.unity -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /Assets/Resources/Scenes Build Setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/Assets/Resources/Scenes Build Setting.png -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/limanson/Unity5-SceneManager-Example/HEAD/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Unity5-SceneManager-Example 2 | 3 | unity 5.3 SceneManager 4 | 5 | 6 | ![](https://cloud.githubusercontent.com/assets/11722272/12217584/f86159f0-b73f-11e5-9fdc-21c36de20e51.jpg) 7 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneA.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 612bc4c4e0950974baa11bc6ae644eb7 3 | timeCreated: 1452158485 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneB.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ced0b5a40a9bdac41976d4457180c51d 3 | timeCreated: 1452158493 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneC.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c57b6d96689a2f14f8358e99208e5c51 3 | timeCreated: 1452195880 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneInit.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26537a02f668a114ca04f6c132cd2e0b 3 | timeCreated: 1452254091 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4ee0117b39449a448b351ba40ab2604 3 | folderAsset: yes 4 | timeCreated: 1452266671 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf0c5e925204a7040a01078815d4b494 3 | folderAsset: yes 4 | timeCreated: 1452266677 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c398da7b2e4b174cb81d4db4d26510e 3 | folderAsset: yes 4 | timeCreated: 1452266699 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneInitialize.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a4e106a4f1e8bb4cba7f84f4af659cf 3 | timeCreated: 1452266970 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 493e77d9a79008240ba8bda312f917ca 3 | timeCreated: 1452199743 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneManagerExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4dcbe1fef96f0243af25224f0fe165a 3 | timeCreated: 1452191130 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | 6 | # Autogenerated VS/MD solution and project files 7 | *.csproj 8 | *.unityproj 9 | *.sln 10 | *.suo 11 | *.tmp 12 | *.user 13 | *.userprefs 14 | *.pidb 15 | *.booproj 16 | 17 | # Unity3D generated meta files 18 | *.pidb.meta 19 | 20 | # Unity3D Generated File On Crash Reports 21 | sysinfo.txt 22 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneInitialize.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SceneInitialize : MonoBehaviour 5 | { 6 | // Use this for initialization 7 | IEnumerator Start () 8 | { 9 | SceneManagerExample.Instance.LoadScene("SceneA"); 10 | yield return new WaitForSeconds(1f); 11 | SceneManagerExample.Instance.MoveToScene("SceneA"); 12 | yield return new WaitForSeconds(1f); 13 | SceneManagerExample.Instance.UnloadScene("SceneInit"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneTrigger.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SceneTrigger : MonoBehaviour 5 | { 6 | public enum TriggerType { LoadScene, UnloadScene, MoveToScene } 7 | public TriggerType triggerType; 8 | public string targetSceneName; 9 | 10 | void OnMouseDown() 11 | { 12 | StartCoroutine(ClickAnimation()); 13 | switch (triggerType) 14 | { 15 | case (TriggerType.LoadScene): 16 | SceneManagerExample.Instance.LoadScene(targetSceneName); 17 | break; 18 | case (TriggerType.UnloadScene): 19 | SceneManagerExample.Instance.UnloadScene(targetSceneName); 20 | break; 21 | case (TriggerType.MoveToScene): 22 | SceneManagerExample.Instance.MoveToScene(targetSceneName); 23 | break; 24 | } 25 | } 26 | 27 | IEnumerator ClickAnimation() 28 | { 29 | transform.localScale = Vector3.one * .45f; 30 | yield return new WaitForSeconds(.1f); 31 | transform.localScale = Vector3.one * .5f; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Assets/Resources/Box.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1a4b6d680ad07e418911218c381f4a7 3 | timeCreated: 1452266096 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 1024 31 | textureSettings: 32 | filterMode: 0 33 | aniso: 16 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 1 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 24 48 | alphaIsTransparency: 1 49 | textureType: 8 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/Resources/Scenes Build Setting.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1f9e959d90839a40a88757d7eb9ed6d 3 | timeCreated: 1452267627 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 1024 31 | textureSettings: 32 | filterMode: -1 33 | aniso: 16 34 | mipBias: -1 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 1 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | textureType: 8 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: [] 54 | spritePackingTag: 55 | userData: 56 | assetBundleName: 57 | assetBundleVariant: 58 | -------------------------------------------------------------------------------- /Assets/Resources/Square.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8056191e8fcab9542a0d40be9698df9f 3 | timeCreated: 1452191847 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 1024 31 | textureSettings: 32 | filterMode: 0 33 | aniso: 16 34 | mipBias: 0 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 3 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 4 48 | alphaIsTransparency: 1 49 | textureType: 8 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: 54 | - - {x: 0, y: 0} 55 | - {x: 0, y: 4} 56 | - {x: 4, y: 4} 57 | - {x: 4, y: 0} 58 | spritePackingTag: 59 | userData: 60 | assetBundleName: 61 | assetBundleVariant: 62 | -------------------------------------------------------------------------------- /Assets/Scripts/SceneManagerExample.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UnityEngine.SceneManagement; 4 | 5 | public class SceneManagerExample : MonoBehaviour 6 | { 7 | public static SceneManagerExample Instance = null; 8 | public TextMesh currentSceneTextMesh; 9 | public TextMesh warningTextMesh; 10 | public GameObject player; 11 | public GameObject[] moveObjects; 12 | 13 | void Awake() 14 | { 15 | if (Instance == null) 16 | Instance = this; 17 | else 18 | Destroy(gameObject); 19 | DisplayCurrentSceneName(); 20 | } 21 | 22 | public void LoadScene(string loadSceneName) 23 | { 24 | Scene targetScene = SceneManager.GetSceneByName(loadSceneName); 25 | if (!targetScene.isLoaded) 26 | { 27 | StartCoroutine(LoadSceneAsync(loadSceneName)); 28 | } 29 | else 30 | { 31 | warningTextMesh.text = loadSceneName + " has already loaded !"; 32 | } 33 | } 34 | 35 | IEnumerator LoadSceneAsync(string loadSceneName) 36 | { 37 | AsyncOperation async = SceneManager.LoadSceneAsync(loadSceneName, LoadSceneMode.Additive); 38 | yield return async; 39 | DisplayCurrentSceneName(); 40 | } 41 | 42 | public void UnloadScene(string unloadSceneName) 43 | { 44 | Scene targetScene = SceneManager.GetSceneByName(unloadSceneName); 45 | if (targetScene.isLoaded) 46 | { 47 | if (targetScene == SceneManager.GetActiveScene()) 48 | { 49 | warningTextMesh.text = "Unload current scene will destroy your GameObjects !"; 50 | } 51 | else 52 | { 53 | StartCoroutine(UnloadSceneYield(unloadSceneName)); 54 | } 55 | } 56 | else 57 | { 58 | warningTextMesh.text = unloadSceneName + " does not loaded !"; 59 | } 60 | } 61 | 62 | IEnumerator UnloadSceneYield(string unloadSceneName) 63 | { 64 | yield return null; 65 | SceneManager.UnloadScene(unloadSceneName); 66 | DisplayCurrentSceneName(); 67 | } 68 | 69 | public void MoveToScene(string sceneName) 70 | { 71 | Scene targetScene = SceneManager.GetSceneByName(sceneName); 72 | if (targetScene.IsValid()) 73 | { 74 | foreach (GameObject ele in moveObjects) 75 | SceneManager.MoveGameObjectToScene(ele, targetScene); 76 | SceneManager.SetActiveScene(targetScene); 77 | DisplayCurrentSceneName(); 78 | MovePlayerPosition(); 79 | } 80 | else 81 | { 82 | warningTextMesh.text = sceneName + " is not valid !"; 83 | } 84 | } 85 | 86 | void DisplayCurrentSceneName() 87 | { 88 | string currentSceneName = SceneManager.GetActiveScene().name; 89 | currentSceneTextMesh.text = "Current Scene : " + currentSceneName; 90 | warningTextMesh.text = ""; 91 | } 92 | 93 | //This is not important just to view easier. 94 | void MovePlayerPosition() 95 | { 96 | Vector2 targetPos = new Vector2(-3.5f, 3.5f); 97 | targetPos.y = (SceneManager.GetActiveScene().buildIndex - 1) * -2.5f + 1.5f; 98 | player.transform.position = targetPos; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /Assets/Resources/Circle.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0987d42bcf4daea40ade6b184fbbfc06 3 | timeCreated: 1452191803 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 0 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 1024 31 | textureSettings: 32 | filterMode: 0 33 | aniso: 16 34 | mipBias: 0 35 | wrapMode: 1 36 | nPOTScale: 0 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | allowsAlphaSplitting: 0 41 | spriteMode: 3 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 4 48 | alphaIsTransparency: 1 49 | textureType: 8 50 | buildTargetSettings: [] 51 | spriteSheet: 52 | sprites: [] 53 | outline: 54 | - - {x: 2, y: 4} 55 | - {x: 2.0981355, y: 3.997591} 56 | - {x: 2.1960342, y: 3.9903693} 57 | - {x: 2.2934608, y: 3.978353} 58 | - {x: 2.3901806, y: 3.9615705} 59 | - {x: 2.4859605, y: 3.9400625} 60 | - {x: 2.5805693, y: 3.9138808} 61 | - {x: 2.6737797, y: 3.883088} 62 | - {x: 2.7653668, y: 3.8477592} 63 | - {x: 2.8551102, y: 3.8079786} 64 | - {x: 2.9427934, y: 3.7638426} 65 | - {x: 3.0282054, y: 3.7154572} 66 | - {x: 3.1111405, y: 3.662939} 67 | - {x: 3.1913986, y: 3.606415} 68 | - {x: 3.2687867, y: 3.546021} 69 | - {x: 3.343118, y: 3.4819021} 70 | - {x: 3.4142137, y: 3.4142134} 71 | - {x: 3.4819024, y: 3.3431177} 72 | - {x: 3.546021, y: 3.2687864} 73 | - {x: 3.6064153, y: 3.1913984} 74 | - {x: 3.6629395, y: 3.1111403} 75 | - {x: 3.7154574, y: 3.0282052} 76 | - {x: 3.7638426, y: 2.9427931} 77 | - {x: 3.8079786, y: 2.8551097} 78 | - {x: 3.8477592, y: 2.7653666} 79 | - {x: 3.8830884, y: 2.6737792} 80 | - {x: 3.9138808, y: 2.5805688} 81 | - {x: 3.9400625, y: 2.4859598} 82 | - {x: 3.9615707, y: 2.39018} 83 | - {x: 3.978353, y: 2.2934604} 84 | - {x: 3.9903696, y: 2.1960335} 85 | - {x: 3.997591, y: 2.0981345} 86 | - {x: 4, y: 1.9999992} 87 | - {x: 3.997591, y: 1.9018638} 88 | - {x: 3.9903693, y: 1.8039649} 89 | - {x: 3.978353, y: 1.7065382} 90 | - {x: 3.9615703, y: 1.6098185} 91 | - {x: 3.9400623, y: 1.5140387} 92 | - {x: 3.9138803, y: 1.4194297} 93 | - {x: 3.8830876, y: 1.3262193} 94 | - {x: 3.8477588, y: 1.234632} 95 | - {x: 3.8079782, y: 1.144889} 96 | - {x: 3.763842, y: 1.0572059} 97 | - {x: 3.715457, y: 0.971794} 98 | - {x: 3.662939, y: 0.8888593} 99 | - {x: 3.606415, y: 0.80860126} 100 | - {x: 3.546021, y: 0.73121345} 101 | - {x: 3.4819026, y: 0.6568823} 102 | - {x: 3.414214, y: 0.5857868} 103 | - {x: 3.3431184, y: 0.51809824} 104 | - {x: 3.2687874, y: 0.4539796} 105 | - {x: 3.1913996, y: 0.39358556} 106 | - {x: 3.1111417, y: 0.33706152} 107 | - {x: 3.0282068, y: 0.2845435} 108 | - {x: 2.9427948, y: 0.23615825} 109 | - {x: 2.8551118, y: 0.1920222} 110 | - {x: 2.7653687, y: 0.1522417} 111 | - {x: 2.6737819, y: 0.1169126} 112 | - {x: 2.5805717, y: 0.08612001} 113 | - {x: 2.4859629, y: 0.059938192} 114 | - {x: 2.3901834, y: 0.038429976} 115 | - {x: 2.293464, y: 0.021647453} 116 | - {x: 2.1960375, y: 0.0096309185} 117 | - {x: 2.0981388, y: 0.0024092197} 118 | - {x: 2.0000036, y: 0} 119 | - {x: 1.9018685, y: 0.002408862} 120 | - {x: 1.8039697, y: 0.009630203} 121 | - {x: 1.7065432, y: 0.02164638} 122 | - {x: 1.6098237, y: 0.038428545} 123 | - {x: 1.5140442, y: 0.059936404} 124 | - {x: 1.4194353, y: 0.08611798} 125 | - {x: 1.326225, y: 0.11691022} 126 | - {x: 1.234638, y: 0.15223897} 127 | - {x: 1.1448947, y: 0.1920191} 128 | - {x: 1.0572114, y: 0.2361548} 129 | - {x: 0.9717995, y: 0.28453982} 130 | - {x: 0.8888645, y: 0.33705747} 131 | - {x: 0.8086064, y: 0.39358127} 132 | - {x: 0.73121834, y: 0.45397508} 133 | - {x: 0.65688694, y: 0.51809335} 134 | - {x: 0.58579123, y: 0.5857816} 135 | - {x: 0.5181024, y: 0.6568769} 136 | - {x: 0.4539833, y: 0.7312082} 137 | - {x: 0.39358878, y: 0.80859625} 138 | - {x: 0.33706427, y: 0.8888544} 139 | - {x: 0.28454578, y: 0.9717895} 140 | - {x: 0.23616016, y: 1.0572016} 141 | - {x: 0.19202375, y: 1.1448851} 142 | - {x: 0.1522429, y: 1.2346284} 143 | - {x: 0.11691344, y: 1.3262157} 144 | - {x: 0.086120605, y: 1.4194263} 145 | - {x: 0.05993855, y: 1.5140355} 146 | - {x: 0.038430214, y: 1.6098155} 147 | - {x: 0.021647573, y: 1.7065355} 148 | - {x: 0.0096309185, y: 1.8039623} 149 | - {x: 0.0024092197, y: 1.9018615} 150 | - {x: 0, y: 1.9999971} 151 | - {x: 0.0024089813, y: 2.0981328} 152 | - {x: 0.009630322, y: 2.196032} 153 | - {x: 0.021646738, y: 2.293459} 154 | - {x: 0.03842914, y: 2.390179} 155 | - {x: 0.05993712, y: 2.485959} 156 | - {x: 0.08611894, y: 2.5805683} 157 | - {x: 0.11691153, y: 2.673779} 158 | - {x: 0.15224075, y: 2.7653663} 159 | - {x: 0.19202125, y: 2.85511} 160 | - {x: 0.23615742, y: 2.9427934} 161 | - {x: 0.28454292, y: 3.0282056} 162 | - {x: 0.33706105, y: 3.1111407} 163 | - {x: 0.39358544, y: 3.191399} 164 | - {x: 0.45397973, y: 3.2687874} 165 | - {x: 0.5180986, y: 3.343119} 166 | - {x: 0.58578753, y: 3.4142146} 167 | - {x: 0.6568835, y: 3.4819036} 168 | - {x: 0.7312151, y: 3.5460224} 169 | - {x: 0.8086034, y: 3.6064167} 170 | - {x: 0.8888618, y: 3.6629407} 171 | - {x: 0.9717971, y: 3.7154589} 172 | - {x: 1.0572095, y: 3.763844} 173 | - {x: 1.144893, y: 3.80798} 174 | - {x: 1.2346367, y: 3.8477607} 175 | - {x: 1.3262241, y: 3.8830895} 176 | - {x: 1.4194348, y: 3.9138818} 177 | - {x: 1.5140442, y: 3.9400635} 178 | - {x: 1.6098242, y: 3.9615717} 179 | - {x: 1.7065442, y: 3.9783537} 180 | - {x: 1.8039712, y: 3.99037} 181 | - {x: 1.9018705, y: 3.997591} 182 | spritePackingTag: 183 | userData: 184 | assetBundleName: 185 | assetBundleVariant: 186 | --------------------------------------------------------------------------------