mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-31 13:17:07 +01:00 
			
		
		
		
	bug fixes
This commit is contained in:
		
							
								
								
									
										24
									
								
								Assets/Scripts/Building/BuildingSign.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Assets/Scripts/Building/BuildingSign.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| using UnityEngine; | ||||
|  | ||||
| public class BuildingSign : Interactable | ||||
| { | ||||
|     private Building parentBuilding; | ||||
|  | ||||
|     private void Start() | ||||
|     { | ||||
|         parentBuilding = this.transform.parent.gameObject.GetComponent<Building>(); | ||||
|     } | ||||
|  | ||||
|  | ||||
|     public override string GetDescription() | ||||
|     { | ||||
|         return "Press [E] to get <color=blue>info</color>."; | ||||
|     } | ||||
|  | ||||
|     public override void Interact() | ||||
|     { | ||||
|         Debug.Log(parentBuilding.GetTitle()); | ||||
|          | ||||
|         Debug.Log("interact"); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 DerTyp187
					DerTyp187