using UnityEngine;
using System.Collections;
public class EnemyBase : MonoBehaviour
{
public Transform Player;
public Transform myEnemy;
public float rotationSpeed = 3f;
protected float speed;
void Awake()
{
myEnemy = transform;
}
void Start()
{
Player = GameObject.FindGameObjectWithTag("Player").transform;
}
// Update is called once per frame
void Update()
{
MoveTo();
}
public virtual void MoveTo()
{
}
}
↧