kadyr

Untitled

Jul 31st, 2021
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Turret : MonoBehaviour
  6. {
  7. public GameObject playerObject;
  8. public Transform riffleStart;
  9. public GameObject bullet;
  10.  
  11. [SerializeField] float area;
  12.  
  13. void Start()
  14. {
  15. playerObject = GameObject.FindObjectOfType<PlayerController>().gameObject;
  16. }
  17.  
  18. void Update()
  19. {
  20.  
  21. }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment