diff --git a/Assets/Prefabs/Bullets/EnemyBullet.prefab b/Assets/Prefabs/Bullets/MobcatBullet.prefab similarity index 99% rename from Assets/Prefabs/Bullets/EnemyBullet.prefab rename to Assets/Prefabs/Bullets/MobcatBullet.prefab index a95d999..3dca038 100644 --- a/Assets/Prefabs/Bullets/EnemyBullet.prefab +++ b/Assets/Prefabs/Bullets/MobcatBullet.prefab @@ -9520,7 +9520,7 @@ GameObject: - component: {fileID: 4482402865533696887} - component: {fileID: 3311105517541852250} m_Layer: 9 - m_Name: EnemyBullet + m_Name: MobcatBullet m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -9611,7 +9611,7 @@ MonoBehaviour: Sprite: {fileID: 5552990435088311320} Trail: {fileID: 4595570391660610945} Explosion: {fileID: 6411602551704027216} - Damage: 12 + Damage: 3.4 --- !u!1 &5552990435088311320 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Bullets/EnemyBullet.prefab.meta b/Assets/Prefabs/Bullets/MobcatBullet.prefab.meta similarity index 100% rename from Assets/Prefabs/Bullets/EnemyBullet.prefab.meta rename to Assets/Prefabs/Bullets/MobcatBullet.prefab.meta diff --git a/Assets/Scripts/AI/Behaviours/RangedAttackFollowed.cs b/Assets/Scripts/AI/Behaviours/RangedAttackFollowed.cs index 1e96c2a..914289c 100644 --- a/Assets/Scripts/AI/Behaviours/RangedAttackFollowed.cs +++ b/Assets/Scripts/AI/Behaviours/RangedAttackFollowed.cs @@ -38,10 +38,10 @@ namespace Saltosion.OneWeapon.AI.Behaviours { } private void Shoot() { - Vector2 Direction = Follow.TargetDirection; + Vector2 Direction = Follow.TargetDirection.normalized; GameObject ShotBulletObj = Instantiate(BulletPrefab, transform.position + (Vector3)Direction, new Quaternion()); Bullet ShotBullet = ShotBulletObj.GetComponent(); - ShotBullet.Direction = Direction.normalized; + ShotBullet.Direction = Direction; ShotBullet.InitialRotation = Mathf.Atan2(Direction.y, Direction.x); } diff --git a/Assets/Scripts/Guns/EnemyBullet.cs b/Assets/Scripts/Guns/MobcatBullet.cs similarity index 92% rename from Assets/Scripts/Guns/EnemyBullet.cs rename to Assets/Scripts/Guns/MobcatBullet.cs index 51ecc2f..93c37ae 100644 --- a/Assets/Scripts/Guns/EnemyBullet.cs +++ b/Assets/Scripts/Guns/MobcatBullet.cs @@ -1,14 +1,11 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; +using UnityEngine; using Saltosion.OneWeapon.Player; using Saltosion.OneWeapon.Enemies; using Saltosion.OneWeapon.Effects; -using Saltosion.OneWeapon.Environment; namespace Saltosion.OneWeapon.Guns { [RequireComponent(typeof(Bullet))] - public class EnemyBullet : MonoBehaviour { + public class MobcatBullet : MonoBehaviour { public Rigidbody2D Body; public GameObject Sprite; diff --git a/Assets/Scripts/Guns/EnemyBullet.cs.meta b/Assets/Scripts/Guns/MobcatBullet.cs.meta similarity index 100% rename from Assets/Scripts/Guns/EnemyBullet.cs.meta rename to Assets/Scripts/Guns/MobcatBullet.cs.meta