예제 #1
0
        public void Update(Player p)
        {
            if (_hasExploded)
                return;

            _chargeTime++;

            Console.Write(_chargeTime);
            if (_chargeTime > MAX_CHARGE)
            {
                p.SuperBomb();
                _hasExploded = true;
            }
        }
예제 #2
0
        public void Update(Player p)
        {
            if (_hasExploded)
            {
                return;
            }

            _chargeTime++;

            Console.Write(_chargeTime);
            if (_chargeTime > MAX_CHARGE)
            {
                p.SuperBomb();
                _hasExploded = true;
            }
        }