mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-31 05:27:07 +01:00 
			
		
		
		
	Added some stuff that belongs somewhere else
This commit is contained in:
		
							
								
								
									
										17
									
								
								Assets/Scripts/Bullet.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Assets/Scripts/Bullet.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class Bullet : MonoBehaviour | ||||
| { | ||||
|     int seconds = 30; | ||||
|     private void Start() | ||||
|     { | ||||
|         StartCoroutine("dest");  | ||||
|     } | ||||
|     IEnumerator dest()  | ||||
|     { | ||||
|        yield return new WaitForSeconds(seconds); | ||||
|         Destroy(this); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										11
									
								
								Assets/Scripts/Bullet.cs.meta
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Assets/Scripts/Bullet.cs.meta
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| fileFormatVersion: 2 | ||||
| guid: 6edc64fed0b209c4da9e92035149367d | ||||
| MonoImporter: | ||||
|   externalObjects: {} | ||||
|   serializedVersion: 2 | ||||
|   defaultReferences: [] | ||||
|   executionOrder: 0 | ||||
|   icon: {instanceID: 0} | ||||
|   userData:  | ||||
|   assetBundleName:  | ||||
|   assetBundleVariant:  | ||||
| @@ -87,7 +87,6 @@ public class GameMaster : NetworkBehaviour | ||||
|                 break; | ||||
|             case 3: | ||||
|                 gameState = 0; | ||||
|                 Debug.Log("Team died"); | ||||
|                 break; | ||||
|             default: | ||||
|                 break; | ||||
|   | ||||
| @@ -95,7 +95,6 @@ public class Player : NetworkBehaviour | ||||
|     { | ||||
|         isAlive = false; | ||||
|         AddDeaths(1); | ||||
|         Debug.Log("DIE"); | ||||
|     } | ||||
|  | ||||
|     //Health | ||||
|   | ||||
| @@ -244,7 +244,8 @@ public class ProcedualAnimationController : NetworkBehaviour | ||||
|     } | ||||
|     void AimDownSights()  | ||||
|     { | ||||
|         aimVal = gravityValue(aimVal, aimSpeed, 1, 0, isAiming); | ||||
|         //aimVal = gravityValue(aimVal, aimSpeed, 1, 0, isAiming); | ||||
|         aimVal = gravityValue(aimVal, aimSpeed, 1, 0, true); | ||||
|         positionMod[2] = Vector3.Lerp(HoldPoint.transform.localPosition, AimPoint.transform.localPosition, Mathf.Pow(aimVal, 1.3f)); | ||||
|     } | ||||
|     void calcRecoilOffset()  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 juliuse98
					juliuse98