diff --git a/Assets/Dusty Char/Standard Assets/2D/Scripts/Restarter.cs b/Assets/Dusty Char/Standard Assets/2D/Scripts/Restarter.cs index d4a5907..8b9c42e 100644 --- a/Assets/Dusty Char/Standard Assets/2D/Scripts/Restarter.cs +++ b/Assets/Dusty Char/Standard Assets/2D/Scripts/Restarter.cs @@ -6,11 +6,12 @@ namespace UnityStandardAssets._2D { public class Restarter : MonoBehaviour { + public string levelName; private void OnTriggerEnter2D(Collider2D other) { - if (other.tag == "Player") + if (other.tag == "Scene_Object") { - SceneManager.LoadScene(SceneManager.GetSceneAt(0).path); + SceneManager.LoadScene(levelName); } } } diff --git a/Assets/Resources/Prefabs/Enemy.meta b/Assets/Resources/Prefabs/Enemy.meta new file mode 100644 index 0000000..63fbc6c --- /dev/null +++ b/Assets/Resources/Prefabs/Enemy.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 01275eb458a35534997899ab69e88ec4 +folderAsset: yes +timeCreated: 1454231669 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Prefabs/Enemy/CloudMove.prefab b/Assets/Resources/Prefabs/Enemy/CloudMove.prefab new file mode 100644 index 0000000..356336a Binary files /dev/null and b/Assets/Resources/Prefabs/Enemy/CloudMove.prefab differ diff --git a/Assets/Resources/Prefabs/Enemy/CloudMove.prefab.meta b/Assets/Resources/Prefabs/Enemy/CloudMove.prefab.meta new file mode 100644 index 0000000..8ba0b55 --- /dev/null +++ b/Assets/Resources/Prefabs/Enemy/CloudMove.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3618f6054127b764196df66b030efa0d +timeCreated: 1454231680 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenes/Level1.unity b/Assets/Resources/Scenes/Level1.unity index 8a95bcf..eaaed1f 100644 Binary files a/Assets/Resources/Scenes/Level1.unity and b/Assets/Resources/Scenes/Level1.unity differ diff --git a/Assets/Resources/Scenes/Level2.unity b/Assets/Resources/Scenes/Level2.unity index 7c07d0e..74f1d58 100644 Binary files a/Assets/Resources/Scenes/Level2.unity and b/Assets/Resources/Scenes/Level2.unity differ diff --git a/Assets/Resources/Scenes/Level3.unity b/Assets/Resources/Scenes/Level3.unity index bdf8ba3..5bcda95 100644 Binary files a/Assets/Resources/Scenes/Level3.unity and b/Assets/Resources/Scenes/Level3.unity differ diff --git a/Assets/Resources/Scenes/Level4.unity b/Assets/Resources/Scenes/Level4.unity index 4d34794..4efd3d8 100644 Binary files a/Assets/Resources/Scenes/Level4.unity and b/Assets/Resources/Scenes/Level4.unity differ diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index f5d3552..6f303bd 100644 Binary files a/ProjectSettings/EditorBuildSettings.asset and b/ProjectSettings/EditorBuildSettings.asset differ