public void Play (bool forward)
{
Debug.Log ("start playing");
mActive = 0;
GameObject go = (tweenTarget == null) ? gameObject : tweenTarget;
......
tw.Play(forward);
}
}
}
}
Debug.Log ("end playing");
}
void OnFinished ()
{
if (--mActive == 0 && current == null)
{
Debug.Log ("on finish called at " + System.DateTime.Now.ToString ());
current = this;
EventDelegate.Execute(onFinished);
// Legacy functionality
if (eventReceiver != null && !string.IsNullOrEmpty(callWhenFinished))
eventReceiver.SendMessage(callWhenFinished, SendMessageOptions.DontRequireReceiver);
eventReceiver = null;
current = null;
}
}