Esempio n. 1
0
 void Update()
 {
     if (Input.GetKeyDown("1"))
     {
         Gun1.SetActive(true);
         Gun2.SetActive(false);
     }
     if (Input.GetKeyDown("2"))
     {
         Gun1.SetActive(false);
         Gun2.SetActive(true);
     }
 }
Esempio n. 2
0
 void Start()
 {
     Gun1.SetActive(true);
     Gun2.SetActive(false);
 }