#pragma strict
var t:GUIText;
var y:float = 0.1;
function Start () {

}

function Update () {

  if (Input.touchCount > 0) {
    if(Input.GetTouch(0).phase == TouchPhase.Began ){
	     if((Time.time - y) < 0.3){
	     
		       t.text = "gun";
		       animation.CrossFade("Run");
	       
	       }else{
	       
		        t.text = "pao";
		        animation.CrossFade("Walk");
	        }
	       
	     y = Time.time;
     }
  }
}

  

相关文章:

  • 2021-02-19
  • 2021-06-08
  • 2022-12-23
  • 2021-10-17
  • 2021-12-20
  • 2021-06-29
  • 2021-09-02
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2021-06-14
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-10-19
相关资源
相似解决方案