/** * Sets a new scale for container in a given duration. * * @param s a new scale value * @param animation duration */ public void SetZoomScaleInDuration(float s, float dt) { if (dt > 0) { if (m_pContainer.Scale != s) { CCActionTween scaleAction = new CCActionTween(dt, "zoomScale", m_pContainer.Scale, s); RunAction(scaleAction); } } else { ZoomScale = s; } }
/** * Sets a new scale for container in a given duration. * * @param s a new scale value * @param animation duration */ public void SetZoomScaleInDuration(float s, float dt) { if (dt > 0) { if (_container.Scale != s) { CCActionTween scaleAction = new CCActionTween (dt, "zoomScale", _container.Scale, s); RunAction(scaleAction); } } else { ZoomScale = s; } }