void OnButtonClick(blindGUIButton sender) { if (sender == m_connectedButton) { Application.Quit(); } }
// Use this for initialization void Start() { m_connectedButton = this.gameObject.GetComponent<blindGUIButton>(); if (m_connectedButton != null) { m_connectedButton.m_buttonClickDelegate = this.OnButtonClick; } }
public void OnButtonClick( blindGUIButton sender ) { if ((sender.name == "OKButton") && m_layer) { blindGUIAnimationState targetShowAnimation = new blindGUIAnimationState( m_layer ); targetShowAnimation.alpha = 0.0f; m_layer.AnimateTo( targetShowAnimation, 1.0f); } }
// Use this for initialization void Start() { m_connectedButton = this.gameObject.GetComponent <blindGUIButton>(); if (m_connectedButton != null) { m_connectedButton.m_buttonClickDelegate = this.OnButtonClick; } }
public void OnButtonClick(blindGUIButton sender) { if ((sender.name == "OKButton") && m_layer) { blindGUIAnimationState targetShowAnimation = new blindGUIAnimationState(m_layer); targetShowAnimation.alpha = 0.0f; m_layer.AnimateTo(targetShowAnimation, 1.0f); } }
private void ClickTheButton(blindGUIButton theButton) { if (GameMaster.GameIsRunning) { GameMaster.GameIsRunning = false; Application.LoadLevel("level1"); } TheGUI.TheMode = TheGUI.THE_MODE.THE_MENU; GameObject.Find("ScriptContainer/Click").GetComponent <AudioSource>().Play(); }
// Use this for initialization void Start() { m_layer = this.gameObject.GetComponent <blindGUILayer>(); m_layer.m_alpha = 0.0f; GameObject buttongo = GameObject.Find("OKButton"); blindGUIButton button = buttongo.GetComponent <blindGUIButton>(); if (button != null) { button.m_buttonClickDelegate = this.OnButtonClick; } }
void OnButtonClick( blindGUIButton sender ) { if (sender == m_connectedButton) { if (m_currentLayer != null) { blindGUIAnimationState targetState = new blindGUIAnimationState( m_currentLayer ); targetState.alpha = 0.0f; m_currentLayer.AnimateTo(targetState, 1.0f); } if (m_switchLayer != null) { blindGUIAnimationState targetState = new blindGUIAnimationState( m_switchLayer ); targetState.alpha = 1.0f; m_switchLayer.AnimateTo(targetState, 1.0f,null,iTweenInBlindGUI.EaseType.linear,0.25f); } } }
// Use this for initialization void Start() { m_connectedButton = this.gameObject.GetComponent<blindGUIButton>(); if (m_connectedButton != null) { m_connectedButton.m_buttonClickDelegate = this.OnButtonClick; } GameObject currentGO = this.gameObject; while (currentGO.transform.parent != null) { m_currentLayer = currentGO.GetComponent<blindGUILayer>(); if (m_currentLayer != null) { break; } currentGO = currentGO.transform.parent.gameObject; } }
void OnButtonClick(blindGUIButton sender) { if (sender == m_connectedButton) { if (m_currentLayer != null) { blindGUIAnimationState targetState = new blindGUIAnimationState(m_currentLayer); targetState.alpha = 0.0f; m_currentLayer.AnimateTo(targetState, 1.0f); } if (m_switchLayer != null) { blindGUIAnimationState targetState = new blindGUIAnimationState(m_switchLayer); targetState.alpha = 1.0f; m_switchLayer.AnimateTo(targetState, 1.0f, null, iTweenInBlindGUI.EaseType.linear, 0.25f); } } }
// Use this for initialization void Start() { m_connectedButton = this.gameObject.GetComponent <blindGUIButton>(); if (m_connectedButton != null) { m_connectedButton.m_buttonClickDelegate = this.OnButtonClick; } GameObject currentGO = this.gameObject; while (currentGO.transform.parent != null) { m_currentLayer = currentGO.GetComponent <blindGUILayer>(); if (m_currentLayer != null) { break; } currentGO = currentGO.transform.parent.gameObject; } }
public virtual void OnButtonStateChange( blindGUIButton sender, bool newState ) { }
private void OnSellect(blindGUIButton sender) { ActiveButton = (Buttons)System.Enum.Parse(typeof(Buttons), sender.name); SellectMenuOption(); }
public virtual void OnButtonClick(blindGUIButton sender) { }
public virtual void OnButtonStateChange(blindGUIButton sender, bool newState) { }
void Awake() { TheButton = GameObject.Find("TheButton").GetComponent <blindGUIButton>(); TheButtonText = TheButton.transform.GetChild(0).gameObject.GetComponent <blindGUIText>(); }
void OnButtonClick( blindGUIButton sender ) { if (sender == m_connectedButton) { Application.Quit(); } }
public virtual void OnButtonClick( blindGUIButton sender ) { }