コード例 #1
0
        /// <summary>
        /// Updates a Monster
        /// </summary>
        public new void Update()
        {
            base.Update();
            AttackTimer.Update();
            MoveTimer.Update();

            if (MoveTimer.ActionReady)
            {
                if (MoveToLowestWeight())
                {
                    return;
                }
                if (GameManager.Random.Next(0, 100) == 0)
                {
                    RegenHealth();
                    MoveRandomOne();
                }
            }
        }