diff --git a/Assets/Scenes/testing_spawn_2.unity b/Assets/Scenes/testing_spawn_2.unity index 8576c77..c815d31 100644 --- a/Assets/Scenes/testing_spawn_2.unity +++ b/Assets/Scenes/testing_spawn_2.unity @@ -5599,7 +5599,7 @@ MonoBehaviour: cannon: {fileID: 447514117} projectile: {fileID: 5630905120393344806, guid: 70e77cdd333989d4193d3d85029d8cbe, type: 3} lookDepth: 400 - cannonForce: 1000 + cannonForce: 600 fireRate: 0.5 fireTimer: 0 --- !u!65 &2089817558 @@ -5696,15 +5696,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1002961339065835566, guid: 3c33f37ff1cce2d48b88e476df2d47a0, type: 3} propertyPath: m_LocalPosition.x - value: -37.1 + value: -41.1 objectReference: {fileID: 0} - target: {fileID: 1002961339065835566, guid: 3c33f37ff1cce2d48b88e476df2d47a0, type: 3} propertyPath: m_LocalPosition.y - value: 38.4 + value: 34.4 objectReference: {fileID: 0} - target: {fileID: 1002961339065835566, guid: 3c33f37ff1cce2d48b88e476df2d47a0, type: 3} propertyPath: m_LocalPosition.z - value: 100.3 + value: 97.2 objectReference: {fileID: 0} - target: {fileID: 1002961339065835566, guid: 3c33f37ff1cce2d48b88e476df2d47a0, type: 3} propertyPath: m_LocalRotation.w diff --git a/Assets/Scripts/CannonScript.cs b/Assets/Scripts/CannonScript.cs index f37f8a2..8b2e0b6 100644 --- a/Assets/Scripts/CannonScript.cs +++ b/Assets/Scripts/CannonScript.cs @@ -39,9 +39,6 @@ public class CannonScript : MonoBehaviour GameObject hitObject = hit.collider.gameObject; - Debug.Log(hitObject.name); - Debug.Log(hitObject.tag); - if (hitObject.tag == "Enemy") { hitObject.GetComponent().IsShot();