// Use this for initialization void Start() { target = GameObject.FindWithTag("Player").transform; myTransform = transform; instance = this; instance.InvokeRepeating("SniperShoot", 1.0f, firingRate); }
// Use this for initialization void Start() { target = GameObject.FindWithTag("Player").transform; myTransform = transform; instance = this; instance.InvokeRepeating("SniperShoot", 1.0f, firingRate); }