Beispiel #1
0
 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;
 }
Beispiel #2
0
 void Start()
 {
     canvas.SetActive(false);
     animator  = GetComponent <Animator>();
     ai        = GetComponent <FollowingAI>();
     maxHealth = health;
 }