Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d9fee91db | ||
|
|
94d5f82635 | ||
|
|
89d2a8a758 | ||
|
|
a3ead4845c | ||
|
|
dea33b7613 | ||
|
|
0b1a359bd9 | ||
|
|
c35a879034 | ||
|
|
1db2ec9a94 |
@@ -730,11 +730,11 @@ CapsuleCollider:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 0
|
m_Bits: 0
|
||||||
m_LayerOverridePriority: 0
|
m_LayerOverridePriority: 0
|
||||||
m_IsTrigger: 0
|
m_IsTrigger: 1
|
||||||
m_ProvidesContacts: 0
|
m_ProvidesContacts: 0
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Radius: 0.5000001
|
m_Radius: 0.5000001
|
||||||
m_Height: 2
|
m_Height: 2
|
||||||
m_Direction: 1
|
m_Direction: 1
|
||||||
m_Center: {x: 0.000000059604645, y: 0, z: -0.00000008940697}
|
m_Center: {x: 0.000000059604645, y: 0, z: -0.00000008940697}
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3d43fd09c613a6c46adf72ed678bfd8c
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -2081,6 +2081,11 @@ Transform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 7448449092846401218, guid: 46014def5fa85504abb9cc3190ae45e3, type: 3}
|
m_CorrespondingSourceObject: {fileID: 7448449092846401218, guid: 46014def5fa85504abb9cc3190ae45e3, type: 3}
|
||||||
m_PrefabInstance: {fileID: 79145418}
|
m_PrefabInstance: {fileID: 79145418}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
=======
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
--- !u!1001 &3100000001
|
--- !u!1001 &3100000001
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2199,8 +2204,15 @@ MonoBehaviour:
|
|||||||
rescueDistance: 3
|
rescueDistance: 3
|
||||||
escapeDistance: 15
|
escapeDistance: 15
|
||||||
runSpeed: 5
|
runSpeed: 5
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
=======
|
=======
|
||||||
>>>>>>> b8d1d2d76a248f40835a9ccf66217c6bdd631231
|
>>>>>>> b8d1d2d76a248f40835a9ccf66217c6bdd631231
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!1660057539 &9223372036854775807
|
||||||
SceneRoots:
|
SceneRoots:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
diff a/Assets/Scenes/Story1.unity b/Assets/Scenes/Story1.unity (rejected hunks)
|
diff a/Assets/Scenes/Story1.unity b/Assets/Scenes/Story1.unity (rejected hunks)
|
||||||
|
<<<<<<< HEAD
|
||||||
|
@@ -2210,6 +2210,9 @@
|
||||||
|
rescueDistance: 3
|
||||||
|
escapeDistance: 15
|
||||||
|
runSpeed: 5
|
||||||
|
+<<<<<<< HEAD
|
||||||
|
+>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
+=======
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
--- !u!1660057539 &9223372036854775807
|
||||||
|
SceneRoots:
|
||||||
|
=======
|
||||||
@@ -194,62 +194,6 @@
|
@@ -194,62 +194,6 @@
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 26477325}
|
m_GameObject: {fileID: 26477325}
|
||||||
@@ -62,3 +74,4 @@ diff a/Assets/Scenes/Story1.unity b/Assets/Scenes/Story1.unity (rejected hunks)
|
|||||||
--- !u!1001 &79145418
|
--- !u!1001 &79145418
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 053b45c74c5f27248b1fa23c2f2c241f
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -22,14 +22,30 @@ public class ARBullet : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (collision.gameObject.tag == "Enemy")
|
if (collision.gameObject.tag == "Enemy")
|
||||||
{
|
{
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
Destroy(collision.gameObject);
|
||||||
|
=======
|
||||||
|
=======
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
EnemyHealth enemy = collision.gameObject.GetComponent<EnemyHealth>();
|
EnemyHealth enemy = collision.gameObject.GetComponent<EnemyHealth>();
|
||||||
|
|
||||||
if (enemy != null)
|
if (enemy != null)
|
||||||
{
|
{
|
||||||
enemy.TakeDamage(damage);
|
enemy.TakeDamage(damage);
|
||||||
|
<<<<<<< HEAD
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
}
|
}
|
||||||
|
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
}
|
}
|
||||||
else if(collision.gameObject.tag == "Wall")
|
else if(collision.gameObject.tag == "Wall")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
//Oliver
|
//Oliver
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class EnemyHealth : MonoBehaviour
|
public class EnemyHealth : MonoBehaviour
|
||||||
|
|||||||
@@ -15,16 +15,44 @@ public class Shoot : MonoBehaviour
|
|||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
|
if (weapon == null)
|
||||||
|
weapon = FindFirstObjectByType<WeaponReload>();
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
if (weapon == null)
|
||||||
|
weapon = FindFirstObjectByType<WeaponReload>();
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
|
||||||
=======
|
=======
|
||||||
if (weapon == null)
|
if (weapon == null)
|
||||||
weapon = FindFirstObjectByType<WeaponReload>();
|
weapon = FindFirstObjectByType<WeaponReload>();
|
||||||
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
if ( AR == true && Input.GetKey(KeyCode.Mouse0))
|
||||||
|
=======
|
||||||
|
if (PauseMenu.GameIsPaused) return;
|
||||||
|
|
||||||
|
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
if (PauseMenu.GameIsPaused) return;
|
||||||
|
|
||||||
|
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
||||||
|
>>>>>>> parent of 392d236 (Merge branch 'main' of https://git.bib.de/PBA3H25ABU/ClearTheZone)
|
||||||
|
=======
|
||||||
|
|
||||||
if (AR == true && Input.GetKey(KeyCode.Mouse0))
|
if (AR == true && Input.GetKey(KeyCode.Mouse0))
|
||||||
=======
|
=======
|
||||||
@@ -32,6 +60,7 @@ public class Shoot : MonoBehaviour
|
|||||||
|
|
||||||
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
||||||
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
||||||
|
>>>>>>> 392d23632b62942df19732b9e125c98967abd9e4
|
||||||
{
|
{
|
||||||
Shot(spawnPointAR);
|
Shot(spawnPointAR);
|
||||||
nextShotTime = Time.time + fireRate;
|
nextShotTime = Time.time + fireRate;
|
||||||
|
|||||||
Reference in New Issue
Block a user