void updateDisplay() { AltarMenu altarMenu = altarDisplay.GetComponentInChildren <AltarMenu>(); altarMenu.addSlot(altarArtifact.GetComponent <DisplayItem>(), healthSacrifice); altarMenu.altar = this; }
// Use this for initialization public void Start() { instance = this; anim = GetComponent <Animator>(); isOpen = false; cost = new int[] { 0, 120, 160, 250, 300, 10 }; bought = new bool[] { true, false, false, false, false }; maxReloadingTime = new float[] { 1, 1.5f, 0.2f, 1.2f, 0.5f }; for (int i = 1; i < wepBTexts.Length; i++) { wepBTexts[i].text = cost[i].ToString(); wepBTexts[i].fontSize = 14; bloods[i].SetActive(true); } wepBTexts[0].text = "EQUIPPED"; wepBTexts[0].fontSize = 8; Player.instance.SetWeapon(0, maxReloadingTime[0]); }