diff --git a/Assets/Prefabs/Asteroid.prefab b/Assets/Prefabs/Asteroid.prefab new file mode 100644 index 0000000..f21dc6f Binary files /dev/null and b/Assets/Prefabs/Asteroid.prefab differ diff --git a/Assets/Prefabs/Asteroid.prefab.meta b/Assets/Prefabs/Asteroid.prefab.meta new file mode 100644 index 0000000..0da83ea --- /dev/null +++ b/Assets/Prefabs/Asteroid.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cc1a204562630cd40a1dd685b5ed8e6e +timeCreated: 1460093261 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..823506f --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: f0123460f54262d43bd494bf9cbc0126 +folderAsset: yes +timeCreated: 1460093246 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Asteroid.cs b/Assets/Scripts/Asteroid.cs similarity index 100% rename from Assets/Asteroid.cs rename to Assets/Scripts/Asteroid.cs diff --git a/Assets/Asteroid.cs.meta b/Assets/Scripts/Asteroid.cs.meta similarity index 100% rename from Assets/Asteroid.cs.meta rename to Assets/Scripts/Asteroid.cs.meta diff --git a/Assets/Scripts/SpawnAsteroids.cs b/Assets/Scripts/SpawnAsteroids.cs new file mode 100644 index 0000000..524ca47 --- /dev/null +++ b/Assets/Scripts/SpawnAsteroids.cs @@ -0,0 +1,25 @@ +using UnityEngine; +using System.Collections; + +public class SpawnAsteroids : MonoBehaviour { + + public GameObject myAsteroid; + public Vector3 initialPosition; + + // Use this for initialization + void Start () { + InvokeRepeating("Spawn", 0, 0.5F); + + } + + // Update is called once per frame + void Update () { + + } + + void Spawn() + { + GameObject instance = Instantiate(myAsteroid); + instance.transform.position = new Vector3(10, 10, 0); + } +} diff --git a/Assets/SpawnAsteroids.cs.meta b/Assets/Scripts/SpawnAsteroids.cs.meta similarity index 100% rename from Assets/SpawnAsteroids.cs.meta rename to Assets/Scripts/SpawnAsteroids.cs.meta diff --git a/Assets/Sounds.meta b/Assets/Sounds.meta new file mode 100644 index 0000000..9c1e5fe --- /dev/null +++ b/Assets/Sounds.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 043c9d3c0b79fd64b9d82d520495597e +folderAsset: yes +timeCreated: 1460093246 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/SpawnAsteroids.cs b/Assets/SpawnAsteroids.cs deleted file mode 100644 index 8e6c050..0000000 --- a/Assets/SpawnAsteroids.cs +++ /dev/null @@ -1,19 +0,0 @@ -using UnityEngine; -using System.Collections; - -public class SpawnAsteroids : MonoBehaviour { - - public bool doSpawn; - - // Use this for initialization - void Start () { - doSpawn = true; - InvokeRepeating("LaunchProjectile", 0, 0.4F); - - } - - // Update is called once per frame - void Update () { - - } -} diff --git a/Assets/_Scenes/sophieScene.unity b/Assets/_Scenes/sophieScene.unity index c14e571..6729570 100644 Binary files a/Assets/_Scenes/sophieScene.unity and b/Assets/_Scenes/sophieScene.unity differ