Beispiel #1
0
    IEnumerator cs()
    {
        yield return(null);

        As.enabled = false;
        lsc.SetActive(false);
        csc.SetActive(true);
        yield return(new WaitForSeconds(3));

        PlayerPrefs.SetString("done1", "yes");
        PlayerPrefs.SetString("do2", "no");
        ll.Other();
    }
Beispiel #2
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.name == "Player")
     {
         if (otherscene)
         {
             ls.Other();
         }
         else
         {
             TP(otherportal);
         }
     }
 }