// Update is called once per frame
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        switch (vb.VirtualButtonName) {
            case "changeBook":
                //Texture2D p = new Texture2D(10, 10);
                Debug.Log ("OnButtonPressed called");
                Transform plane = transform.Find("PageLeaves");
                Renderer r = plane.GetComponent<MeshRenderer>();
                bookMaterialIndex = bookMaterialIndex + 1;
                if (bookMaterialIndex == m_materials.Length) {
                    bookMaterialIndex = 0;
                }
                r.material = m_materials[bookMaterialIndex];

                BookText bt = GameObject.Find("Retriever").GetComponent<BookText> ();
                bt.changeBook();

                //p = Resources.Load("CatsCradleBook.Front", typeof(Texture2D)) as Texture2D;
                //		Plane plane = transform.Find ("Front").GetComponent<Plane>();
                //GameObject mt = GameObject.Find("MultiTarget");
                //Debug.Log(mt);
                //Transform go = mt.transform.Find("");
        //				if(go!=null){
        //					foreach(Component c in go.GetComponents<Component>()){
        //						Debug.Log(c);
        //					}
        ////					Material m = Resources.Load("CatsCradleBook.Front.mat", typeof(Material)) as Material;
        //					Renderer r = GetComponent<MeshRenderer>();
        //					r.material = m_materials[bookMaterialIndex];
        //					bookMaterialIndex = bookMaterialIndex + 1;
        ////					r.material =m;
        //				}
                break;
        }
    }
	public void OnButtonReleased (VirtualButtonAbstractBehaviour vb)
	{
		if (debug) Debug.Log("OnButtonPressed ("+vb.VirtualButtonName+") "+virtualButtonReleased.ToString()+" to "+eventTarget.ToString(),this);
		
		Fsm.EventData.StringData = vb.VirtualButtonName;
		virtualButtonReleased.SendEvent(null,eventTarget);
	}
Example #3
0
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        VirtualButtonBehaviour vbc = vb as VirtualButtonBehaviour;
        DefaultTrackableEventHandler trackableEvent = GetComponent<DefaultTrackableEventHandler>();

        GameTurretController ctr = currentTurret.GetComponent<GameTurretController>();

        if( (vbc.VirtualButtonName == "redShootButton") ||
            (vbc.VirtualButtonName == "shootButtonBlue") ) {

            if(trackableEvent.isAlive) {
                ctr.FireBullet();
            }
        }
        else  if( (vbc.VirtualButtonName == "blueUpButton") ||
                  (vbc.VirtualButtonName == "redUpButton") ) {

            trackableEvent.OnTurretUp();
        }
        else  if( (vbc.VirtualButtonName == "blueDownButton") ||
                  (vbc.VirtualButtonName == "redDownButton") ) {

            trackableEvent.OnTurretDown();
        }
    }
 /// <summary>
 /// Called when the virtual button has just been pressed:
 /// </summary>
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     //Debug.Log(vb.VirtualButtonName);
     count++;
     Debug.Log(vb.VirtualButtonName + " Button pressed!");
     print (vb.VirtualButtonName + "press count:"+count );
     switch(vb.VirtualButtonName) {
     case "button_up":
         Debug.Log ("up pressed");
         InputSimulator.SimulateKeyDown(VirtualKeyCode.UP);
         break;
     case "button_down":
         Debug.Log ("down pressed");
         InputSimulator.SimulateKeyDown(VirtualKeyCode.DOWN);
         break;
     case "button_left":
         Debug.Log ("left pressed");
         InputSimulator.SimulateKeyDown(VirtualKeyCode.LEFT);
         break;
     case "button_right":
         Debug.Log ("right pressed");
         InputSimulator.SimulateKeyDown(VirtualKeyCode.RIGHT);
         break;
     }
 }
Example #5
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     metronome.SetStart(point);
     for (int i = 0; i < allButtons.childCount; ++i)
         allButtons.GetChild(i).gameObject.SetActive(false);
     button.SetActive(true);
 }
Example #6
0
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        //Debug.Log(vb.VirtualButtonName);
        //Debug.Log("Button pressed!");

        switch(vb.VirtualButtonName) {
        case "btnLeft":
            btn_1.SetActive(false);
            btn_2.SetActive(true);
            //model_1.SetActive(false);
            model_1.GetComponent<Animation>().CrossFade("Walk");
            //model_2.SetActive(true);
            break;
        case "btnRight":
            btn_1.SetActive(true);
            btn_2.SetActive(false);
            //model_1.SetActive(true);
            model_1.GetComponent<Animation>().CrossFade("Death");
            //model_2.SetActive(false);
            break;
            //   default:
            //       throw new UnityException("Button not supported: " + vb.VirtualButtonName);
            //           break;
        }
    }
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     //videoPlane.GetComponent<MeshRenderer>().enabled = true;
     //FillScreen fScreen = videoPlane.GetComponent<FillScreen> ();
     //fScreen.enabled = true;
     Handheld.PlayFullScreenMovie ("CardMovie.mp4", Color.black, FullScreenMovieControlMode.Hidden);
 }
 /// <summary>
 /// Called when the virtual button has just been pressed:
 /// </summary>
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     //Debug.Log(vb.VirtualButtonName);
     Debug.Log("Button pressed!");
     Application.LoadLevel("DemoScene");
     /*
     switch(vb.VirtualButtonName) {
     case "btnLeft":
         btn_1.SetActive(false);
         btn_2.SetActive(true);
         model_1.SetActive(false);
         model_2.SetActive(true);
                 break;
     case "btnRight":
         btn_1.SetActive(true);
         btn_2.SetActive(false);
         model_1.SetActive(true);
         model_2.SetActive(false);
        break;
      //   default:
      //       throw new UnityException("Button not supported: " + vb.VirtualButtonName);
      //           break;
     }
     */
 }
	public void OnButtonPressed(VirtualButtonAbstractBehaviour vb){
		switch(vb.VirtualButtonName){
			case "Boton1": modelo1_.SetActive (true);
						 modelo2_.SetActive (false);
						 modelo3_.SetActive (false);
						modelo4_.SetActive (false);
						
						 break;
			case "Boton2": modelo1_.SetActive (false);
						 modelo2_.SetActive (true);
						 modelo3_.SetActive (false);
						modelo4_.SetActive (false);
						 break;
			case "Boton3": modelo1_.SetActive (false);
							modelo2_.SetActive (false);
							modelo3_.SetActive (true);
							modelo4_.SetActive (false);
							break;
			case "Boton4": modelo1_.SetActive (false);
							modelo2_.SetActive (false);
							modelo3_.SetActive (false);
							modelo4_.SetActive (true);
							break;
			break;
			//default: throw new UnityException("Button not supported: " + vb.VirtualButtonName); 
				//break;
				
		}
	}
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        Debug.Log("OnButtonPressed::" + vb.VirtualButtonName);

        if (!IsValid())
        {
            return;
        }

        // Add the material corresponding to this virtual button
        // to the active material list:
        switch (vb.VirtualButtonName)
        {
            case "red":
                mActiveMaterials.Add(m_TeapotMaterials[0]);
                break;

            case "blue":
                mActiveMaterials.Add(m_TeapotMaterials[1]);
                break;

            case "yellow":
                mActiveMaterials.Add(m_TeapotMaterials[2]);
                break;

            case "green":
                mActiveMaterials.Add(m_TeapotMaterials[3]);
                break;
        }

        // Apply the new material:
        if (mActiveMaterials.Count > 0)
            mTeapot.GetComponent<Renderer>().material = mActiveMaterials[mActiveMaterials.Count - 1];
    }
Example #11
0
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
        //VirtualButtonBehaviour vbc = vb as VirtualButtonBehaviour;

        DefaultTrackableEventHandler trackableEvent = GetComponent<DefaultTrackableEventHandler>();

        trackableEvent.StopInteraction();
    }
Example #12
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     metronomeActive = !metronomeActive;
     metronome.SetActive(metronomeActive);
     button.SetActive(false);
     button.GetComponent<Renderer>().material.SetColor("_Color",
         metronomeActive ? new Color(.23f, .7f, .11f) : new Color(.5f, .7f, .5f));
 }
Example #13
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     button.SetActive(false);
     playing = !playing;
     button.GetComponent<Renderer>().material.SetColor("_Color",
         playing ? new Color(.23f, .7f, .11f) : new Color(.5f, .7f, .5f));
     metronome.ToogleKick();
 }
 /// <summary>
 /// Called when the virtual button has just been released:
 /// </summary>
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     //		if( vb.VirtualButtonName == "VirtualButton" )
     //		{
     //			Debug.Log ( "tirei" );
     ////			bird_go.AddComponent<MyAnimation>();
     //		}
 }
Example #15
0
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        //Debug.Log(vb.VirtualButtonName);
           WWW url = new WWW("http://scavar.herokuapp.com/flags.json");

           Debug.Log("Button pressed!");
           btn_1.SetActive(false);
           model_1.SetActive(false);
    }
Example #16
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     button.SetActive(false);
     playing = !playing;
     Debug.Log("PRESSED");
     GameObject.FindGameObjectWithTag ("Drums").GetComponent<TutorialScript> ().tutorialActive = playing;
     button.GetComponent<Renderer>().material.SetColor("_Color",
         playing ? new Color(.23f, .7f, .11f) : new Color(.5f, .7f, .5f));
 }
Example #17
0
 /// <summary>
 /// Called when the virtual button has just been released:
 /// </summary>
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     if (vb.VirtualButtonName == "center"){
         //pViewer.VButton(1);
         Debug.Log("CENTER PUSH: " + (Time.time - startTime));
         if (Time.time - startTime >= 3f)
         {
             Application.LoadLevel("Scene");
         }
     }
 }
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        //Debug.Log("OnButtonPressed::" + vb.VirtualButtonName);

        if( vb.VirtualButtonName == "VirtualButton" )
        {
            Debug.Log ( "teste" );
            var = 1;
            bird_go.AddComponent<MyAnimation>();
        }
    }
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        Debug.Log("OnButtonPressed::" + vb.VirtualButtonName);

        if (!IsValid())
        {
            return;
        }

        if (vb.VirtualButtonName == "button1") {
            string url = m_ProjectLinks[0];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("openWebsite", url);
        }

        if (vb.VirtualButtonName == "button2") {
            string url = m_ProjectLinks[1];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("openWebsite", url);
        }

        if (vb.VirtualButtonName == "button3") {
            string url = m_ProjectLinks[2];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("openWebsite", url);
        }

        if (vb.VirtualButtonName == "button4") {
            string address = m_ProjectLinks[3];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("sendEmail", address);
        }

        if (vb.VirtualButtonName == "button5") {
            string number = m_ProjectLinks[4];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("callPhone", number);
        }

        if (vb.VirtualButtonName == "button6") {
            string number = m_ProjectLinks[5];
            AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
            AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
            jo.Call ("openProjects");
        }
    }
	/// <summary>
	/// Called when the virtual button has just been pressed:
	/// </summary>
	public void OnButtonPressed(VirtualButtonAbstractBehaviour vb) {

		switch(vb.VirtualButtonName) {
		case "btnChange":
			if(_modelSamurai.activeSelf==true){
				_modelSamurai.SetActive(false);
				_samuraiText.SetActive(false);
				_modelPlane.SetActive(true);
				_planeText.SetActive(true);
				index = 1;
				_modelCurrent=_modelPlane;
			}
			else{
				_modelSamurai.SetActive(true);
				_samuraiText.SetActive(true);
				_modelPlane.SetActive(false);
				_planeText.SetActive(false);
				index = 0;
				_modelCurrent=_modelSamurai;
			}

			break;
		case "btnZoomIn":
			if(Counter[index]<5){
				_modelCurrent.transform.localScale = new Vector3 (_modelCurrent.transform.localScale.x + factor, _modelCurrent.transform.localScale.y + factor, _modelCurrent.transform.localScale.z + factor);
				Counter[index] ++;
			}
			break;
		case "btnZoomOut":
			if(Counter[index]>-5){
				_modelCurrent.transform.localScale = new Vector3 (_modelCurrent.transform.localScale.x - factor, _modelCurrent.transform.localScale.y - factor, _modelCurrent.transform.localScale.z - factor);
				Counter[index] --;
			}
			break;
		case "btnPlay":
			if(_modelSamurai.activeSelf==true){ 
				var anim = _modelSamurai.GetComponent<Animation>();
				if(anim.IsPlaying("Attack"))
					anim.Play("idle");
				else
					anim.Play("Attack");
			}
			break;
		case "btnRotate":
			rotateFlag = rotateFlag==true ? false : true; 
			break;
		default:
			throw new UnityException("Button not supported: " + vb.VirtualButtonName);
			break;
		}
	}
Example #21
0
    /// <summary>
    /// Called when the virtual button has just been released:
    /// </summary>
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
        _comboControl.WaitAndTry();

        //candleFire.startColor = normalColor;

        if (vb.VirtualButtonName == "center"){
            //pViewer.VButton(1);
            Debug.Log("CENTER PUSH: " + (Time.time - startTime));
            if (Time.time - startTime >= 3f)
            {
                Application.LoadLevel("Scene");
            }
        }
    }
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonPressed::" + vb.VirtualButtonName);
     switch (vb.VirtualButtonName) {
     case "Rojo":
         bulbashur.transform.position = new Vector3(-5000,160,21);
         charmander.transform.position = new Vector3(134,160,21);
         charmander.transform.localScale = new Vector3(40,40,40);
         break;
     case "Verde":
         charmander.transform.position = new Vector3(-5000,160,21);
         bulbashur.transform.position = new Vector3(134,160,21);
         bulbashur.transform.localScale = new Vector3(40,40,40);
         break;
     }
 }
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     switch (vb.VirtualButtonName) {
     case "changePage":
         break;
     case "changeBook":
     //			Texture2D p = new Texture2D(10, 10);
     //			p = Resources.Load("CatsCradleBook.Back", typeof(Texture2D)) as Texture2D;
     //			Transform go = transform.Find("MultiTarget").Find("Front");
     //			if(go!=null){
     //				Material mat = go.GetComponent<Material> ();
     //				mat.mainTexture = p;
     //			}
     //			Debug.Log ("OnButtonReleased called");
         break;
     }
 }
Example #24
0
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        if (!active || homerTime < 0.3f)
            return;

        Deactivate();

        int points = 0;

        if (boardScript.currentColor == color || color == HomerColor.ORO) {
            points = color == HomerColor.ORO ? 1 : 2;
            GetComponent<AudioSource>().PlayOneShot(woohoo);
        } else {
            points = -1;
            GetComponent<AudioSource>().PlayOneShot(doh);
        }

        boardScript.ChangeColor(points, color == HomerColor.ORO);
    }
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
		switch (vb.VirtualButtonName)
        {
            case "Choice1":
                answer = GameObject.Find("TextChoice1").GetComponent<Text>().text.ToString();
                break;
            case "Choice2":
                answer = GameObject.Find("TextChoice2").GetComponent<Text>().text.ToString();
                break;

            case "Choice3":
                answer = GameObject.Find("TextChoice3").GetComponent<Text>().text.ToString();
                break;

            case "Choice4":
                answer = GameObject.Find("TextChoice4").GetComponent<Text>().text.ToString();
                break;
        }
    }
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        GameObject graphicButton = null;
        //Debug.Log("Pressed");
        switch (vb.VirtualButtonName)
        {
            case "Next":
                graphicButton = transform.Find("Next").gameObject;
                break;
            case "Select":
                graphicButton = transform.Find("Select").gameObject;
                break;
        }

        if (graphicButton != null)
        {
            var meshrenderer = graphicButton.GetComponent<MeshRenderer>();
            meshrenderer.material.color = Color.blue;
        }
    }
Example #27
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonPressed::" + vb.VirtualButtonName);
     switch (vb.VirtualButtonName) {
     case "rojo":
         Rojo.active = true;
         Verde.active = false;
         Azul.active = false;
         break;
     case "verde":
         Rojo.active = false;
         Verde.active = true;
         Azul.active = false;
         break;
     case "azul":
         Rojo.active = false;
         Verde.active = false;
         Azul.active = true;
         break;
     }
 }
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
        GameObject graphicButton = null;
        switch(vb.VirtualButtonName)
        {
            case "Next":
                graphicButton = transform.Find("Next").gameObject;
                SelectNextTower();
                break;
            case "Select":
                graphicButton = transform.Find("Select").gameObject;
                SpawnCreateTower();
                break;
        }

        if (graphicButton != null)
        {
            var meshrenderer = graphicButton.GetComponent<MeshRenderer>();
            meshrenderer.material.color = Color.white;
        }
    }
Example #29
0
 /// <summary>
 /// Called when the virtual button has just been pressed:
 /// </summary>
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     if (pViewer == null) {return;}
     switch(vb.VirtualButtonName) {
     case "left":
         pViewer.VButton(0);
         Debug.Log("LEFT_B");
         break;
     case "center":
         startTime = Time.time;
         //pViewer.VButton(1);
         Debug.Log("CENTER_B");
         break;
     case "right":
         pViewer.VButton(2);
         Debug.Log("RIGHT_B");
         break;
     default:
         //throw new UnityException("Button not supported: " + vb.VirtualButtonName);
         break;
     }
 }
Example #30
0
    /// <summary>
    /// Called when the virtual button has just been pressed:
    /// </summary>
    public void OnButtonPressed( VirtualButtonAbstractBehaviour vb)
    {
        //	if (pViewer == null) {return;}
        switch(vb.VirtualButtonName) {
        case "b1":
            Debug.Log("recenter");

            break;
        case "b2":
            break;
        case "b10":
            SoundController.instance.Play("ghost", 0.8f, 1f);
            break;
        default:
            //throw new UnityException("Button not supported: " + vb.VirtualButtonName);
            break;
        }

        Debug.Log(vb.VirtualButtonName);
        candleFire.startColor = colors[vb.gameObject.GetComponent<VirtualButtonBehaviour>().id];
        _comboControl.AddToStack(vb.gameObject.GetComponent<VirtualButtonBehaviour>().id);
    }
Example #31
0
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        Debug.Log(passwd);

        if (passwd.Length > 3)
        {
            if (passwd == "1234")
            {
                string plaintext = GameObject.Find("ARCamera").GetComponent <httpReq>().displayedmessage;
                GameObject.Find("Message").GetComponent <TextMesh>().text = plaintext;
            }
            else if (passwd.Length == 4)
            {
                GameObject.Find("Message").GetComponent <TextMesh>().text = "wrong password";
                passwd = ""; // reset password string
            }
            else
            {
                GameObject.Find("Message").GetComponent <TextMesh>().text = "";
            }


            passwd = ""; // reset password string
        }



        switch (vb.VirtualButtonName)
        {
        case "no1":
            no_1.SetActive(false);
            no_2.SetActive(true);
            no_3.SetActive(true);
            no_4.SetActive(true);
            model_1.SetActive(false);
            model_2.SetActive(true);
            model_3.SetActive(true);
            model_4.SetActive(true);

            passwd = passwd + "1";
            GameObject.Find("pin").GetComponent <TextMesh>().text = passwd;            // display text


            break;

        case "no2":
            no_1.SetActive(true);
            no_2.SetActive(false);
            no_3.SetActive(true);
            no_4.SetActive(true);
            model_1.SetActive(true);
            model_2.SetActive(false);
            model_3.SetActive(true);
            model_4.SetActive(true);

            passwd = passwd + "2";
            GameObject.Find("pin").GetComponent <TextMesh>().text = passwd;                    // display text
            break;

        case "no3":
            no_1.SetActive(true);
            no_2.SetActive(true);
            no_3.SetActive(false);
            no_4.SetActive(true);
            model_1.SetActive(true);
            model_2.SetActive(true);
            model_3.SetActive(false);
            model_4.SetActive(true);

            passwd = passwd + "3";
            GameObject.Find("pin").GetComponent <TextMesh>().text = passwd;                    // display text

            break;

        case "no4":
            no_1.SetActive(true);
            no_2.SetActive(true);
            no_3.SetActive(true);
            no_4.SetActive(false);
            model_1.SetActive(true);
            model_2.SetActive(true);
            model_3.SetActive(true);
            model_4.SetActive(false);

            passwd = passwd + "4";
            GameObject.Find("pin").GetComponent <TextMesh>().text = passwd;                    // display text

            break;
            //   default:
            //       throw new UnityException("Button not supported: " + vb.VirtualButtonName);
            //           break;
        }
    }
Example #32
0
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
        zombie.GetComponent <Animation>().Stop();
//		Debug.Log ("Button released virtual");
    }
Example #33
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("Button down");
     MusicSource.Play();
 }
Example #34
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("Button Pressed");
     obj.transform.Rotate(new Vector3(0, Time.deltaTime * 1000, 0));
 }
Example #35
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonReleased");
 }
Example #36
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     buttonRe.GetComponent <AudioSource> ().Play();
     master.GetComponent <Game> ().ColorRed(1, true);
 }
Example #37
0
 /// Called when the virtual button has just been pressed:
 void IVirtualButtonEventHandler.OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     model1.SetActive(true);
     Debug.Log("Button Pressed!!!!!");
 }
Example #38
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     GetComponent <MeshRenderer> ().material.color = Color.yellow;;
 }
Example #39
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     GetComponent <MeshRenderer> ().material.color = d;
 }
Example #40
0
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
        Debug.Log("Released");
//        userDisplay.GetComponent<Text>().text = "";
    }
Example #41
0
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
        Debug.Log("Pressed");
//        userDisplay.GetComponent<Text>().text = "HERE IS SOM AWESOME INFORMATION" ;
    }
 public void OnButtonReleased(VirtualButtonAbstractBehaviour virtualButton)
 {
     Debug.Log("Button Up");
     earth.GetComponent <EarthRotation> ().setNegativeXToFalse();
     buttonDown = false;
 }
Example #43
0
    public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
    {
//		dragonAnimation.Stop ();
        Debug.Log("UNPRESSED");
    }
Example #44
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     master.GetComponent <Game> ().ColorRed(1, false);
     master.GetComponent <Game> ().checkCorrect(1);
 }
Example #45
0
 /// Called when the virtual button has just been released:
 void IVirtualButtonEventHandler.OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("Button released!");
 }
Example #46
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     dragonAnimation.Play("4leg3HitComboTailAttack");
     Debug.Log("Pressed");
 }
Example #47
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonPressed +++");
 }
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     Panel.SetActive(false);
     Debug.Log("VB Released");
 }
Example #49
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonPressed");
     stepMan.Advance();
 }
Example #50
0
 /// <summary>
 /// Called when the virtual button has just been pressed:
 /// </summary>
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("OnButtonPressed");
     KickSoccerball();
 }
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     pressNum++;
     pressNum %= 3;
     Debug.Log("按钮按下!");
 }
Example #52
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
 }
Example #53
0
    public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
    {
//		Debug.Log ("Button pressed virtual");
        zombie.GetComponent <Animation>().Play();
    }
Example #54
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     //DNA.SetActive (true);
     //DNA.transform.Rotate (new Vector3(2,Time.deltaTime * 60, 0));
 }
Example #55
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Debug.Log("virtual button pressed");
 }
Example #56
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     //throw new System.NotImplementedException ();
 }
Example #57
0
 public void OnButtonReleased(VirtualButtonAbstractBehaviour vb)
 {
     cubego.SetActive(true);
     spherego.SetActive(false);
 }
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     Panel.SetActive(true);
     Debug.Log("VB Pressed");
 }
 public void OnButtonPressed(VirtualButtonAbstractBehaviour virtualButton)
 {
     Debug.Log("Button Down");
     earth.GetComponent <EarthRotation> ().setNegativeXToTrue();
     buttonDown = true;
 }
Example #60
0
 public void OnButtonPressed(VirtualButtonAbstractBehaviour vb)
 {
     //StartCoroutine(DownloadAudio("test"));
     //_robot.SetActive(!show);
 }