Пример #1
0
 //private static bool created = false;
 void Start()
 {
     //for cooldown so that on start you can command a magic spell without waiting on that cooldown
     hasFireCooledDown      = true;
     hasMinionsCooleddown   = true;
     hasLightningCooledDown = true;
     //hasFearCooledDown = true;
     //hasMindControlCooledDown = true;
     isSpawningMinions   = true;
     isSpawningFire      = true;
     isSpawningLightning = true;
     //isSpawningFear = true;
     //isSpawningMindControl = true;
     cam = Camera.main;
     hasEvilCooledDown = true;
     sounds            = GameObject.FindWithTag("SoundManager").GetComponent <SoundsSceneManager> ();
 }
 //private static bool created = false;
 void Start()
 {
     if (keywords != null)
     {
         recognizer = new KeywordRecognizer(keywords, confidence);
         recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized;
         recognizer.Start();
     }
     //for cooldown so that on start you can command a magic spell without waiting on that cooldown
     hasFireCooledDown      = true;
     hasMinionsCooleddown   = true;
     hasLightningCooledDown = true;
     //hasFearCooledDown = true;
     //hasMindControlCooledDown = true;
     hasEvilCooledDown = true;
     sounds            = GameObject.FindWithTag("SoundManager").GetComponent <SoundsSceneManager> ();
     cam = Camera.main;
     //on screen cooldown visuals
     cooldownImage  = GameObject.FindWithTag("Firespell");
     cooldownImage2 = GameObject.FindWithTag("Lightningspell");
     cooldownImage3 = GameObject.FindWithTag("MinionSpell");
     col1           = new Color(105 / 255.0F, 105 / 255.0F, 105 / 255.0F); //cooldown visual
     col2           = new Color(255 / 255.0F, 255 / 255.0F, 255 / 255.0F); //normal visual
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     menuOptions.SetActive(false);
     menuExit.SetActive(false);
     sounds = GameObject.FindWithTag("SoundManager").GetComponent <SoundsSceneManager> ();
 }
Пример #4
0
 void Start()
 {
     sounds = GameObject.FindWithTag("SoundManager").GetComponent <SoundsSceneManager> ();
 }