Пример #1
0
        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);
        }
Пример #2
0
 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);
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     CoroutineManager.BeginCoroutine(CREffects.ZoomToScale(transformToZoom, initialScale, targetScale, zoomTime, DelegateMethod), ref cr_ScaleZoom, this);
 }