private IEnumerator WaitThenMove() { transform.position = startPosition; outline.transform.localScale = new Vector3(3.0f / PlayerManager.PlayerCount, 3.0f / PlayerManager.PlayerCount, 1); yield return(new WaitForSeconds(1.0f)); CoroutineManager.BeginCoroutine(CREffects.ZoomToScale(outline.transform, outline.transform.localScale, Vector3.one, 0.2f), ref cr_Achievement, this); CoroutineManager.BeginCoroutine(CREffects.ZoomToPosition(transform, transform.position, homePosition, 0.2f), ref cr_MovePos, this); }
private void DelegateMethod() { Debug.Log("Test Item 4: Zooming to scale: " + targetScale.ToString()); CoroutineManager.BeginCoroutine(CREffects.ZoomToScale(transformToZoom, initialScale, targetScale, zoomTime, DelegateMethod), ref cr_ScaleZoom, this); }
// Use this for initialization void Start() { CoroutineManager.BeginCoroutine(CREffects.ZoomToScale(transformToZoom, initialScale, targetScale, zoomTime, DelegateMethod), ref cr_ScaleZoom, this); }