private void Start() { dmgBoostOn = false; extraRangeON = false; fastShot = false; //Debug.Log("started boii"); _playerpos = GameObject.Find("Player").GetComponent <Transform>(); _player = GameObject.Find("Player").GetComponent <Player>(); _gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); _potionSpawner = GameObject.Find("Spawner").GetComponent <PotionSpawner>(); }
protected override void Start() { base.Start(); pPos = GetComponent <Transform>(); _weapon1 = GameObject.Find("FireStone").GetComponent <FireImp>(); shake = GameObject.FindGameObjectWithTag("ScreenShake").GetComponent <Shake>(); _gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); _audioSource = GetComponent <AudioSource>(); _potionSpawner = GameObject.Find("Spawner").GetComponent <PotionSpawner>(); pDamage = 100; }
private void Awake() { Instance = this; }