Ejemplo n.º 1
0
        private void Start()
        {
            houseManager = TowerManager.instance.houseSlotManager;

            houseInspectPopup = TowerManager.instance.houseInspectPopup;

            canvasGroup = GetComponent <CanvasGroup>();

            houseManager.AddHouseSlot(this);

            HideHouse();
            HideAnimal();
        }
Ejemplo n.º 2
0
        void Awake()
        {
            if (instance == null)
            {
                instance = this;
                DontDestroyOnLoad(this);
            }
            else if (instance != this)
            {
                Destroy(gameObject);
                return;
            }

            houseSlotManager = GetComponent <HouseSlotManager>();
        }