コード例 #1
0
        public override void onEnter()
        {
            base.onEnter();

            CCSize s = CCDirector.sharedDirector().getWinSize();

            // add title
            CCLabelTTF label = CCLabelTTF.labelWithString(title(), "Arial", 32);
            addChild(label, 1);
            label.position = new CCPoint(s.width / 2, s.height - 50);
            CCNode ccnode = new CCNode();
            ccnode.sheduleUpdate();

            m_plabel = CCLabelBMFont.labelWithString("00.0", "fonts/arial16.fnt");
            m_plabel.position = new CCPoint(s.width / 2, s.height / 2);
            addChild(m_plabel);

            elapsedTime = 0;
            numberOfTouchesB = numberOfTouchesM = numberOfTouchesE = numberOfTouchesC = 0;
        }