Hey guys, quick question. I have the following method that fires a camera shake using iTween. I set the oncomplete property to a method inside the same class but it doesn't seem to be firing. Here is what I have. I'm sure I'm missing something but I can't seem to see what.
By default iTween attempts to call the callback methods you provide it on the object it is animating - in your case the mainCamera.gameObject. Since "onCameraShakeComplete" does not reside on that object it is never getting called. You have two options: Move that method onto your mainCamera.gameObject or simply provide am "onCompleteTarget" of gameObject to tell iTween to use the GameObject that is setting up this iTween.
Hope that helps.... I hate typing this answer up ;)
even after adding "oncompletetarget" , mainDraggablePannel.gameObject i couldnt achieve the result… since my i had a seperate script object… for that i changed it to "oncompletetarget",this.gameObject and it worked!!