private void Start() { GetGun = GameObject.FindGameObjectWithTag("Gunposition").GetComponent <GetGun>(); bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>(); Health = health; Render = GetComponent <Renderer>(); PlayerUI = GameObject.FindGameObjectWithTag("PlayerUI").GetComponent <PlayerUI>(); }
// Start is called before the first frame update void Start() { bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>(); foreach (GameObject Gun in Gun) { Gun.SetActive(false); } nowgun = 0; currentgun = 0; Gun[currentgun].SetActive(true); }
void Start() { GetGun = GameObject.FindGameObjectWithTag("Gunposition").GetComponent <GetGun>(); bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>(); }
private void Start() { bullUI = GameObject.FindGameObjectWithTag("BullUI").GetComponent <bullUI>(); }