Exemplo n.º 1
0
    public static RedLightEnemyController Create(PlayerController player, Vector2 enemeyPos)
    {
        var rleCtrl = new RedLightEnemyController();

        rleCtrl.enemyPos = enemeyPos;
        var rlCtrl = RedLightController.Create(player, enemeyPos);

        ApCtrl.SetAlphaImmediately(rlCtrl.lightAlpha, 0);
        ApCtrl.SetAlphaImmediately(rlCtrl.spriteAlpha, 0);
        rleCtrl.rlCtrl = rlCtrl;
        rleCtrl.player = player;
        return(rleCtrl);
    }