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