mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-11-03 22:18:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			480 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			480 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections;
 | 
						|
using System.Collections.Generic;
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
public class InfoSign : 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("interact");
 | 
						|
    }
 | 
						|
}
 | 
						|
 |