Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6303895fb4 | ||
|
|
d27b860d72 |
@@ -194,6 +194,8 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 26477325}
|
m_GameObject: {fileID: 26477325}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
--- !u!1 &50826110 stripped
|
--- !u!1 &50826110 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
m_CorrespondingSourceObject: {fileID: 1804703078109025515, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
m_CorrespondingSourceObject: {fileID: 1804703078109025515, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
||||||
@@ -252,6 +254,7 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier: Assembly-CSharp::PlayerHealth
|
m_EditorClassIdentifier: Assembly-CSharp::PlayerHealth
|
||||||
maxHealth: 100
|
maxHealth: 100
|
||||||
currentHealth: 100
|
currentHealth: 100
|
||||||
|
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
||||||
--- !u!1001 &79145418
|
--- !u!1001 &79145418
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -336,6 +339,10 @@ PrefabInstance:
|
|||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: PlayerRobot
|
value: PlayerRobot
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3850558004095404047, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
||||||
|
propertyPath: bulletPrefab
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 4474395191186681843, guid: afa71643f370d394e8dd19e0ab40ab57, type: 3}
|
||||||
- target: {fileID: 7736108665850884707, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
- target: {fileID: 7736108665850884707, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
||||||
propertyPath: m_LocalScale.x
|
propertyPath: m_LocalScale.x
|
||||||
value: 4
|
value: 4
|
||||||
@@ -394,16 +401,7 @@ PrefabInstance:
|
|||||||
- targetCorrespondingSourceObject: {fileID: 3795091336040275115, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 3795091336040275115, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1546402526}
|
addedObject: {fileID: 1546402526}
|
||||||
m_AddedComponents:
|
m_AddedComponents: []
|
||||||
- targetCorrespondingSourceObject: {fileID: 1804703078109025515, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 50826114}
|
|
||||||
- targetCorrespondingSourceObject: {fileID: 1804703078109025515, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 50826113}
|
|
||||||
- targetCorrespondingSourceObject: {fileID: 1804703078109025515, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 50826116}
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 6ea5f5e913c0b774fbcc2503ce1f5351, type: 3}
|
||||||
--- !u!1 &347073536
|
--- !u!1 &347073536
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -599,7 +597,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::HealthUI
|
m_EditorClassIdentifier: Assembly-CSharp::HealthUI
|
||||||
healthText: {fileID: 1240748855}
|
healthText: {fileID: 1240748855}
|
||||||
playerHealth: {fileID: 50826116}
|
playerHealth: {fileID: 0}
|
||||||
--- !u!114 &535044339
|
--- !u!114 &535044339
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2077,11 +2075,6 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 2046372891}
|
m_GameObject: {fileID: 2046372891}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!4 &2136079773 stripped
|
|
||||||
Transform:
|
|
||||||
m_CorrespondingSourceObject: {fileID: 7448449092846401218, guid: 46014def5fa85504abb9cc3190ae45e3, type: 3}
|
|
||||||
m_PrefabInstance: {fileID: 79145418}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
--- !u!1660057539 &9223372036854775807
|
--- !u!1660057539 &9223372036854775807
|
||||||
SceneRoots:
|
SceneRoots:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ public class ARBullet : MonoBehaviour
|
|||||||
if (enemy != null)
|
if (enemy != null)
|
||||||
{
|
{
|
||||||
enemy.TakeDamage(damage);
|
enemy.TakeDamage(damage);
|
||||||
Destroy(gameObject);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
else if(collision.gameObject.tag == "Wall")
|
else if(collision.gameObject.tag == "Wall")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//Oliver
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class EnemyHealth : MonoBehaviour
|
public class EnemyHealth : MonoBehaviour
|
||||||
|
|||||||
@@ -14,15 +14,24 @@ public class Shoot : MonoBehaviour
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
=======
|
||||||
if (weapon == null)
|
if (weapon == null)
|
||||||
weapon = FindFirstObjectByType<WeaponReload>();
|
weapon = FindFirstObjectByType<WeaponReload>();
|
||||||
|
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
|
if (AR == true && Input.GetKey(KeyCode.Mouse0))
|
||||||
|
=======
|
||||||
if (PauseMenu.GameIsPaused) return;
|
if (PauseMenu.GameIsPaused) return;
|
||||||
|
|
||||||
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
if (AR == true && Input.GetKey(KeyCode.Mouse0) && Time.time >= nextShotTime)
|
||||||
|
>>>>>>> 85ece045864c59c50ed55097c35e2c15b9051a0f
|
||||||
{
|
{
|
||||||
Shot(spawnPointAR);
|
Shot(spawnPointAR);
|
||||||
nextShotTime = Time.time + fireRate;
|
nextShotTime = Time.time + fireRate;
|
||||||
@@ -38,6 +47,5 @@ public class Shoot : MonoBehaviour
|
|||||||
|
|
||||||
GameObject bullet = Instantiate(bulletPrefab, spawnPoint.position, spawnPoint.rotation);
|
GameObject bullet = Instantiate(bulletPrefab, spawnPoint.position, spawnPoint.rotation);
|
||||||
bullet.transform.Rotate(90, 0, 0);
|
bullet.transform.Rotate(90, 0, 0);
|
||||||
Destroy(bullet, 2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user