// bool for particles //private bool isSmallObject = false; private void Start() { if (type == InteractType.Break) { IsBreakable = true; } else if (type == InteractType.PickUp) { IsBreakable = true; } else { IsBreakable = false; } if ((gameObject.tag == "pic1") || (gameObject.tag == "pic2") || (gameObject.tag == "pic3") || (gameObject.tag == "pic4")) { thisMaterial = GetComponent <Renderer>().materials; } // This is null most of the time popUpObject = this.gameObject.GetComponent <PopUpObject>(); }
// Update is called once per frame void CheckForPopups() { if (listOfPopUps.Count > 0 && !isShowing) { listOfPopUps[0].ShowPopUp(); currentPopup = listOfPopUps[0]; listOfPopUps.RemoveAt(0); isShowing = true; } }
void AddPopup(PopUpObject puo) { listOfPopUps.Add(puo); }