public EnemyShip(Texture2D tex, Rectangle bounds, World world, Body body) : base(tex, bounds, world, body) { AI = new FollowingAI(); Body.AngularDamping = 0.5f; Body.UserData = this; }
void Start() { canvas.SetActive(false); animator = GetComponent <Animator>(); ai = GetComponent <FollowingAI>(); maxHealth = health; }