Beispiel #1
0
    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));
    }
Beispiel #2
0
    private void EnemyCollision(float delta)
    {
        Ennemy_Fly t = (Ennemy_Fly)raycast.GetCollider();

        t.Damage(POWER * delta);
    }