iTweenの処理後の操作でoncompleteを使うけど,指定した関数に飛ばない.
DebugLogを見ると飛んでいるようだけど,やってくれない.
うまくいかなかった例
iTween.FadeTo(obj, iTween.Hash("alpha", 0, "time", 0.4f,"oncomplete","boolReset","oncompletetarget", obj)); function boolReset(){ //bool reset }
iTween.FadeTo(obj, iTween.Hash("alpha", 0, "time", 0.4f,"oncomplete","boolReset")); function boolReset(){ //boolreset }
うまくいった例
iTween.FadeTo(obj, iTween.Hash("alpha", 0, "time", 0.4f,"oncomplete","boolReset","oncompletetarget", gameObject));
ほげぇ,,,