Esempio n. 1
0
 void Start()
 {
     audioSource1 = GetComponent <AudioSource>();
     audioSource2 = GetComponent <AudioSource>();
     _enumChanger = GameObject.FindGameObjectWithTag("Sphere5Enum").GetComponent <SphereEnum>();
     _enumChanger.currentColorType = SphereEnum.ColorType.StarterColor;
 }
Esempio n. 2
0
 void Start()
 {
     aiScript       = GameObject.FindGameObjectWithTag("AI").GetComponent <AIScript2>();
     checkingState0 = GameObject.FindGameObjectWithTag("Sphere0Enum").GetComponent <SphereEnum>();
     checkingState1 = GameObject.FindGameObjectWithTag("Sphere1Enum").GetComponent <SphereEnum>();
     checkingState2 = GameObject.FindGameObjectWithTag("Sphere2Enum").GetComponent <SphereEnum>();
     checkingState3 = GameObject.FindGameObjectWithTag("Sphere3Enum").GetComponent <SphereEnum>();
     checkingState4 = GameObject.FindGameObjectWithTag("Sphere4Enum").GetComponent <SphereEnum>();
     checkingState5 = GameObject.FindGameObjectWithTag("Sphere5Enum").GetComponent <SphereEnum>();
     audioSource    = GetComponent <AudioSource>();
 }