Esempio n. 1
0
 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);
     }
 }
Esempio n. 4
0
 // 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);
     }
 }
Esempio n. 6
0
 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;
     }
 }
Esempio n. 10
0
 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);
         }
     }
 }
Esempio n. 11
0
    // 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 )
 {
 }
Esempio n. 13
0
 private void OnSellect(blindGUIButton sender)
 {
     ActiveButton = (Buttons)System.Enum.Parse(typeof(Buttons), sender.name);
     SellectMenuOption();
 }
Esempio n. 14
0
 public virtual void OnButtonClick(blindGUIButton sender)
 {
 }
Esempio n. 15
0
 public virtual void OnButtonStateChange(blindGUIButton sender, bool newState)
 {
 }
Esempio n. 16
0
 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 )
 {
 }