summaryrefslogtreecommitdiff
path: root/GameCode/PowerUps.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-10-27 11:05:14 +0800
committerchai <215380520@qq.com>2023-10-27 11:05:14 +0800
commit766cdff5ffa72b65d7f106658d1603f47739b2ba (patch)
tree34d7799a94dfa9be182825577583c0fa6dc935f7 /GameCode/PowerUps.cs
+ init
Diffstat (limited to 'GameCode/PowerUps.cs')
-rw-r--r--GameCode/PowerUps.cs66
1 files changed, 66 insertions, 0 deletions
diff --git a/GameCode/PowerUps.cs b/GameCode/PowerUps.cs
new file mode 100644
index 0000000..64f3ae7
--- /dev/null
+++ b/GameCode/PowerUps.cs
@@ -0,0 +1,66 @@
+using UnityEngine;
+
+public class PowerUps : MonoBehaviour
+{
+ public GameObject weapon;
+
+ public float damage = 1f;
+
+ public float knockback = 1f;
+
+ public float attackSpeed = 1f;
+
+ public float projectileSpeed = 1f;
+
+ public float spread;
+
+ public float evenSpread;
+
+ public float gravity = 1f;
+
+ public int projectiles = 1;
+
+ public int reflects;
+
+ public int smartBounce;
+
+ public int bulletPortal;
+
+ public int randomBounces;
+
+ public int bursts = 1;
+
+ public float lifeSteal;
+
+ public float projectileSize;
+
+ public float damageAfterDistanceMultiplier = 1f;
+
+ public float distancceForDamageAfterDistanceMultiplier = 5f;
+
+ public float timeToReachFullMovementMultiplier;
+
+ public ObjectsToSpawn[] objectsToSpawn;
+
+ public bool waveMovement;
+
+ public bool teleport;
+
+ public bool spawnSkelletonSquare;
+
+ public float explodeNearEnemyRange;
+
+ public float explodeNearEnemyDamage;
+
+ public float hitMovementMultiplier = 1f;
+
+ private void Start()
+ {
+ EffectWeapon(weapon);
+ }
+
+ private void EffectWeapon(GameObject weapon)
+ {
+ weapon.GetComponent<Gun>();
+ }
+}