Esempio n. 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);
        }
 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);
 }
 // Use this for initialization
 void Start()
 {
     objectToShow.SetActive(false);
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(objectToShow, true, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
 private void DelegateMethod()
 {
     Debug.Log("Test Item 5: Zooming to scale: " + targetScale.ToString());
     CoroutineManager.BeginCoroutine(CREffects.SmoothZoomToScale(transformToZoom, initialScale, targetScale, smoothTime, maxSpeed, scaleError, DelegateMethod), ref cr_ScaleZoom, this);
 }
 private void DelegateMethod()
 {
     Debug.Log("Test Item 1: GameObject Enabled: " + objectToShow.activeSelf.ToString());
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(objectToShow, !objectToShow.activeSelf, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
 // Use this for initialization
 void Start()
 {
     CoroutineManager.BeginCoroutine(CREffects.SmoothZoomToScale(transformToZoom, initialScale, targetScale, smoothTime, maxSpeed, scaleError, DelegateMethod), ref cr_ScaleZoom, this);
 }
Esempio n. 8
0
 // Use this for initialization
 void Start()
 {
     ParticleSystem.EmissionModule em = ps.emission;
     em.enabled = false;
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(ps, true, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
Esempio n. 9
0
 private void DelegateMethod()
 {
     Debug.Log("Test Item 3: Particles Enabled: " + ps.emission.enabled.ToString());
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(ps, !ps.emission.enabled, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
Esempio n. 10
0
 // Use this for initialization
 void Start()
 {
     behaviourToShow.enabled = false;
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(behaviourToShow, true, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
Esempio n. 11
0
 private void DelegateMethod()
 {
     Debug.Log("Test Item 2: Behaviour Enabled: " + behaviourToShow.enabled.ToString());
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(behaviourToShow, !behaviourToShow.enabled, 2.0f, DelegateMethod), ref cr_Appear, this);
 }