2 using System.Collections;
8 public GameObject sphereEmitters;
9 public GameObject sphere;
10 public GameObject logo;
15 if (instance != null) {
16 throw(
new System.Exception (
"Error: Cannot create more than one instance of SceneAnimation!"));
25 if (
Config.instance.skipAnimations) {
28 sphere.SetActive (
true);
29 logo.SetActive (
false);
30 PatientSelector.SetActive (
true);
31 sphereEmitters.SetActive (
true);
34 sphereEmitters.GetComponent<Animator> ().Play (
"EnableSphereEmitters", -1, 1f);
35 sphere.GetComponent<Animator> ().Play (
"EnableSphere", -1, 1f);
36 logo.GetComponent<Animator> ().Play (
"LogoActivate", -1, 1f);
39 sphere.SetActive (
false);
40 logo.SetActive (
false);
41 PatientSelector.SetActive (
false);