mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-31 05:27:07 +01:00 
			
		
		
		
	Fuck nothing works
This commit is contained in:
		
							
								
								
									
										41
									
								
								Assets/Scripts/oneVsOneStateMashine.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								Assets/Scripts/oneVsOneStateMashine.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class oneVsOneStateMashine : MonoBehaviour | ||||
| { | ||||
|     public int state = 0; | ||||
|     public const int TOTALSTATES = 4; | ||||
|     void StateMashineRound()  | ||||
|     { | ||||
|         switch (state) | ||||
|         { | ||||
|             case 0: | ||||
|                 //respawn players | ||||
|                 break; | ||||
|             case 1: | ||||
|                 //Let the players walk and kill each other | ||||
|                 //if one team gets killed    go to next state | ||||
|                 break; | ||||
|             case 2: | ||||
|                 //stop player movement | ||||
|                 break; | ||||
|             case 3: | ||||
|                 //show score board | ||||
|                 break; | ||||
|             default: | ||||
|                 break; | ||||
|  | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     void switchState()  | ||||
|     { | ||||
|         state++; | ||||
|         if (state >= TOTALSTATES) | ||||
|         { | ||||
|             state = 0; | ||||
|         } | ||||
|          | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 juliuse98
					juliuse98