void Start() { rb = GetComponent <Rigidbody>(); mainCamera = FindObjectOfType <Camera>(); max_HP = 100; max_Shield = 100; cur_HP = max_HP; cur_Shield = max_Shield; gunBoolean = FindObjectOfType <GunBool>(); m_Pistole.SetActive(false); Score = 0; }
// Use this for initialization void Start() { m_pistolUI.SetActive(false); m_galilUI.SetActive(false); gunbool = FindObjectOfType <GunBool>(); }
void Start() { gunbool = FindObjectOfType <GunBool>(); }