mirror of
				https://github.com/DerTyp7/example-top-down-unity.git
				synced 2025-10-31 05:17:07 +01:00 
			
		
		
		
	Interaction
This commit is contained in:
		
							
								
								
									
										14
									
								
								Assets/Scripts/TreeInteraction.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Assets/Scripts/TreeInteraction.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class TreeInteraction : Interactable | ||||
| { | ||||
|     public override string GetDescription() => "Baum muss schreie"; | ||||
|     public override void Interact() | ||||
|     { | ||||
|         if(isInRange()) | ||||
|             Debug.Log("AaaaaaaaaaAaAAaAaAAaAaAaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 janis
					janis