mirror of
				https://github.com/DerTyp7/harvestdale-unity.git
				synced 2025-11-03 22:58:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			321 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			321 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using UnityEngine;
 | 
						|
 | 
						|
public abstract class GuiPanel : MonoBehaviour
 | 
						|
{
 | 
						|
  [SerializeField] private string panelName;
 | 
						|
 | 
						|
  public string GetName()
 | 
						|
  {
 | 
						|
    return panelName;
 | 
						|
  }
 | 
						|
 | 
						|
  private void Awake()
 | 
						|
  {
 | 
						|
    GuiManager.Instance.RegisterPanel(this);
 | 
						|
  }
 | 
						|
 | 
						|
  public abstract void OnOpen();
 | 
						|
  public abstract void OnClose();
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
 |