Beispiel #1
0
    // Update is called once per frame
    IEnumerator MyCoroutine()
    {
        yield return(new WaitForSeconds(2.0f));

        SafePanel.SetActive(false);
        WeaponSlot.SetActive(true);
        HUD.SetActive(true);
    }
Beispiel #2
0
 // Start is called before the first frame update
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Open"))
     {
         SafePanel.SetActive(true);
         HUD.SetActive(false);
         WeaponSlot.SetActive(false);
         StartCoroutine(MyCoroutine());
     }
 }