Пример #1
0
 // Use this for initialization
 void Start()
 {
     songmanager = GameObject.FindGameObjectWithTag("songmanager").GetComponent <songmanager>();
     score       = GameObject.FindGameObjectWithTag("songmanager").GetComponent <ScoreManager>();
     arrayPos    = songmanager.nextIndex - 1;
     xVal        = songmanager.notes[arrayPos].xIndex;
     KeyToPress  = keysToPress[xVal];
     theSR       = GetComponent <SpriteRenderer>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     songmanager    = GameObject.FindGameObjectWithTag("songmanager").GetComponent <songmanager>();
     combo          = 1;
     combotext.text = combo.ToString() + "x";
     if (!songmanager.relax)
     {
         multiplier = 1 + (songmanager.approachRate * 0.02f);
     }
     else if (songmanager.relax)
     {
         multiplier = 0.5f;
     }
 }