"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var PlayScene_1 = require("../playScene/PlayScene");
var CountDownPanel = (function (_super) {
    __extends(CountDownPanel, _super);
    function CountDownPanel() {
        var _this = _super.call(this) || this;
        _this.initUI();
        return _this;
    }
    Object.defineProperty(CountDownPanel.prototype, "skinKey", {
        get: function () { return 'CountDown'; },
        enumerable: true,
        configurable: true
    });
    CountDownPanel.prototype.initUI = function () {
        var _this = this;
        egret.Tween.get(this.countnum)
            .set({ source: "three_png" })
            .call(function () {
            egret.Tween.get(_this.countnum)
                .wait(1000)
                .set({ source: "two_png" })
                .call(function () {
                egret.Tween.get(_this.countnum)
                    .wait(1000)
                    .set({ source: "one_png" })
                    .wait(1000)
                    .call(function () {
                    _this.hidePanel();
                    PlayScene_1.default.instance.getEnterFrame();
                    var now = Date.now();
                    PlayScene_1.default.instance.createtime = now;
                });
            });
        });
        egret.Tween.get(this.tips)
            .set({ text: "Tips:按照箭头方向，操控汽车，变换车道哦~" })
            .call(function () {
            egret.Tween.get(_this.tips)
                .wait(1000)
                .set({ text: "Tips:注意躲避车辆和路障，碰到3次障碍物，游戏结束。" })
                .call(function () {
                egret.Tween.get(_this.tips)
                    .wait(1000)
                    .set({ text: "Tips:记得收集路上的月饼，提高自己的排名哦~" });
            });
        });
    };
    return CountDownPanel;
}(Panel_1.default));
exports.default = CountDownPanel;
__reflect(CountDownPanel.prototype, "\"e:/zqty/egret/src/countDownPanel/CountDownPanel\".CountDownPanel");
//# sourceMappingURL=CountDownPanel.js.map