Esempio n. 1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     alien1riddlecontact = true;
     if (GM.codeoffflag == false)
     {
         SS.Interact(0);
     }
     else if (GM.codeoffflag == true)
     {
         SS.Interact(3);
     }
 }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Return))
     {
         if (GameObject.Find("InputField").GetComponent <InputField>().text.Contains("5231") && SC.alien1riddlecontact == true && GM.codeoffflag == false)
         {
             GM.codeoffflag = true;
             A4S.Interaction(1);
             SC.completedb = true;
             GM.PartCollide();
         }
         else if (GM.songcompleted == false && SC.alien1riddlecontact == true && GM.codeoffflag == false)
         {
             SS.Interact(1);
         }
     }
 }