aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nGJ2019/Assets')
-rw-r--r--nGJ2019/Assets/Scripts/DragonMovement.cs190
-rw-r--r--nGJ2019/Assets/Scripts/SwarmSystem.cs51
2 files changed, 228 insertions, 13 deletions
diff --git a/nGJ2019/Assets/Scripts/DragonMovement.cs b/nGJ2019/Assets/Scripts/DragonMovement.cs
new file mode 100644
index 0000000..67f5cde
--- /dev/null
+++ b/nGJ2019/Assets/Scripts/DragonMovement.cs
@@ -0,0 +1,190 @@
+using UnityEngine;
+using System.Collections;
+using System.Collections.Generic;
+
+public class DragonMovement : MonoBehaviour
+{
+ public List<Renderer> solids;
+
+ public float horizontalSpeed = 0.1f;
+ public float verticalSpeed = 0.2f;
+
+ public float horizontalBound = 6f;
+ public float verticalBound = 4f;
+
+ pr