Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     objectToShow.SetActive(false);
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(objectToShow, true, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     behaviourToShow.enabled = false;
     CoroutineManager.BeginCoroutine(CREffects.SetActiveAfterDelay(behaviourToShow, true, 2.0f, DelegateMethod), ref cr_Appear, this);
 }
Ejemplo n.º 6
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);
 }