public static void Spawn_Enemy(float x, float y) { Ennemy_Fly enemy1 = (Ennemy_Fly)enemy_fly.Instance(); instance.AddChild(enemy1); enemy1.Position = Convertion.World2Location(new Vector2(x, y)); }
private void EnemyCollision(float delta) { Ennemy_Fly t = (Ennemy_Fly)raycast.GetCollider(); t.Damage(POWER * delta); }