// Start is called before the first frame update void Start() { gm = FindObjectOfType <GameManager>(); gc = FindObjectOfType <GuyController>(); storeUI = FindObjectOfType <StoreUI>(); gs = gc.GetComponent <GuyShooting>(); gunM = gc.GetComponent <GunManager>(); SetUpItem(); }
// Start is called before the first frame update void Start() { gm = FindObjectOfType <GameManager>(); wm = gm.GetComponent <WaveManager>(); gc = FindObjectOfType <GuyController>(); gs = gc.GetComponent <GuyShooting>(); }
private void Awake() { gm = FindObjectOfType <GameManager>(); gc = FindObjectOfType <GuyController>(); gunM = gc.GetComponent <GunManager>(); storeUI = FindObjectOfType <StoreUI>(); }