Skip to content

Instantly share code, notes, and snippets.

@maco1028
Last active July 12, 2017 01:38
Show Gist options
  • Save maco1028/a7f17bdbe7fb59e01be6be9c533c7ef4 to your computer and use it in GitHub Desktop.
Save maco1028/a7f17bdbe7fb59e01be6be9c533c7ef4 to your computer and use it in GitHub Desktop.
iTween再生
bool ShootBool = false;
void Update () {
//タッチしたら再生されないようにする(連続再生させない)
if (Input.GetMouseButtonDown(0) && !ShootBool) {
ShootBool = true;
iTweenEvent.GetEvent(gameObject,"shoot").Play();
Debug.Log ("Shoot");
}
}//Update
//タッチが終わったら再生できるようにする
void oncomp(){
Debug.Log ("ShootComplite");
ShootBool = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment