Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class EnemyAI : MonoBehaviour {
  5. public Transform target;
  6. public int moveSpeed;
  7. public int rotationSpeed;
  8.  
  9. private Transform myTransform;
  10.  
  11. }
  12.  
  13. void Awake() {
  14. myTransform = transform;
  15. }
  16.  
  17. // Use this for initialization
  18. void Start () {
  19. GameObject go = GameObject.FindGameObjectWithTag("Player");
  20.  
  21. }
  22.  
  23. // Update is called once per frame
  24. void Update () {
  25.  
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement