UHSampleGame.CoreObjects.Units.Unit.Update C# (CSharp) Method

Update() public method

public Update ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool
        public bool Update(GameTime gameTime)
        {
            if (Health <= 0)
            {
                OnDied();
            }

            if (!PlayerCollection.CheckFreezeEnemiesFor(this.PlayerNum))
            {
                UpdatePath();
                UpdateTransforms();
            }

            if (gameOver)
                return true;
            return false;
        }

Same methods

Unit::Update ( GameTime gameTime ) : void