Last active
July 12, 2017 01:38
-
-
Save maco1028/a7f17bdbe7fb59e01be6be9c533c7ef4 to your computer and use it in GitHub Desktop.
iTween再生
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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