public void Init() { if ((UnityEngine.Object)_anim == null) { _anim = GetComponent <Animation>(); } Util.FindParentToChild(ref _uiRareBG, base.transform, "RareBG"); Util.FindParentToChild(ref _uiShip, base.transform, "ShipLayoutOffset/Ship"); Util.FindParentToChild(ref _clsShipName, base.transform, "MessageWindow/ShipName"); Util.FindParentToChild(ref _clsSType, base.transform, "MessageWindow/ShipType"); Util.FindParentToChild(ref _uiMessageBG, base.transform, "MessageWindow/MessageBG"); Util.FindParentToChild(ref _uiGearBtn, base.transform, "MessageWindow/NextBtn"); Util.FindParentToChild <ParticleSystem>(ref _uiParStar1, base.transform, "ParticleStar1"); Util.FindParentToChild <ParticleSystem>(ref _uiParStar2, base.transform, "ParticleStar2"); Util.FindParentToChild <Animation>(ref _getIconAnim, base.transform, "MessageWindow/Get"); if ((UnityEngine.Object)_gearAnim == null) { _gearAnim = _uiGearBtn.GetComponent <Animation>(); } _clsShipMessage = new Generics.Message(base.transform, "MessageWindow/ShipMessage"); _uiShip.alpha = 0f; _isFinished = false; }
public void Show(string text, bool bUseBoxCollider = true) { Show(); m_btnButton.GetComponent <BoxCollider>().enabled = bUseBoxCollider; if (m_btnButton.animation) { m_btnButton.animation.Stop(); m_btnButton.animation.Play(); StopCoroutine("WaitAnimation"); StartCoroutine("WaitAnimation"); } m_lbLabel.text = text; }
public void GetActiveInterfaceObjects(List <FrontiersInterface.Widget> currentObjects, int flag) { if (flag < 0) { flag = GUIEditorID; } FrontiersInterface.Widget w = new FrontiersInterface.Widget(GUIEditorID); w.SearchCamera = NGUICamera; w.BoxCollider = AxisLockButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = ResetCameraButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = ReorientButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = CursorLockButton.GetComponent <BoxCollider>(); currentObjects.Add(w); }
public void GetActiveInterfaceObjects(List <FrontiersInterface.Widget> currentObjects, int flag) { if (Visible) { ContainerDisplay.GetActiveInterfaceObjects(currentObjects, flag); FrontiersInterface.Widget w = new FrontiersInterface.Widget(flag); w.SearchCamera = NGUICamera; if (TakeAllButton != null && TakeContainerButton != null) { w.BoxCollider = TakeContainerButton.GetComponent <BoxCollider>(); currentObjects.Add(w); w.BoxCollider = TakeAllButton.GetComponent <BoxCollider>(); currentObjects.Add(w); } w.BoxCollider = ShowHideButton.GetComponent <BoxCollider>(); currentObjects.Add(w); } }
public void SetBackButtonEnable(bool isEnable) { BackButton.GetComponent <BoxCollider2D>().enabled = isEnable; }