Exemplo n.º 1
0
        // Update is called once per frame
        void Update()
        {
            transform.Rotate(new Vector3(0, 90, 0) * Time.deltaTime, Space.World);

            if (playerInRange)
            {
                audio.Serum();
                SerumGetUI.SetActive(true);
                GetSerum();
                droneController.isSerumDetected = false;
                droneController.DetectEndPoint();
                Destroy(gameObject);
            }
        }