private void Start() { houseManager = TowerManager.instance.houseSlotManager; houseInspectPopup = TowerManager.instance.houseInspectPopup; canvasGroup = GetComponent <CanvasGroup>(); houseManager.AddHouseSlot(this); HideHouse(); HideAnimal(); }
void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(this); } else if (instance != this) { Destroy(gameObject); return; } houseSlotManager = GetComponent <HouseSlotManager>(); }