Пример #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.tag == "Player")
     {
         PlayerPrefs.SetInt("Reload", 0);
         PlayerPrefs.SetInt("Revive Point", -1);
         systemController.GetComponent <SystemController>().LoadScene(Scene_num);
     }
 }
Пример #2
0
 private void Death()
 {
     if (isDead == true)
     {
         if (DeadEffect != null)
         {
             DeadEffect.SetActive(true);
         }
         PlayerPrefs.SetInt("Reload", 1);
         systemController.GetComponent <SystemController>().LoadScene(recnetCard);
         CanFade = true;
         gameObject.GetComponent <PlayerController>().CanMove = false;
     }
 }