StartCounter() 공개 메소드

public StartCounter ( String id, int term, bool refresh = true, bool loop = false ) : bool
id String
term int
refresh bool
loop bool
리턴 bool
예제 #1
0
        public Player(Game game)
            : base(game, Vector2.Zero, null)
        {
            _weaponRange = Constants.Player_WeaponRange;
            _cm = new CounterManager();
            _cm.Bang += new EventHandler<BangEventArgs>(OnBang);

            (Game as Game1)._input.Potion.Pressed += new EventHandler(UsePotion);

            _cm.AddCounter(_hitCounter, Constants.Player_HitDuration);
            _radius = Constants.Player_Radius;

            //FrameCounter
            _cm.AddCounter(_animCounter, 250);
            _cm.StartCounter(_animCounter,false);

            _health = 500;
            _canBeAttacked = true;
        }