mirror of
				https://github.com/DerTyp7/example-top-down-unity.git
				synced 2025-10-31 05:17:07 +01:00 
			
		
		
		
	base vitality
This commit is contained in:
		
							
								
								
									
										18
									
								
								Assets/Scripts/Player/PlayerController.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Assets/Scripts/Player/PlayerController.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| // Handles the player input, such as interactions | ||||
| public class PlayerController : MonoBehaviour | ||||
| { | ||||
|     [SerializeField] | ||||
|     GameObject calendar; | ||||
|  | ||||
|     void Update() | ||||
|     { | ||||
|         if (Input.GetButtonDown("Calendar") && calendar != null) | ||||
|         { | ||||
|             calendar.SetActive(!calendar.activeSelf); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 j.mei7
					j.mei7