Exemplo n.º 1
0
        protected void CollideObjects(Physics[] list)
        {
            bool flag = false;

            foreach (Physics phy in list)
            {
                if (phy is Box)
                {
                    _actions.Add(new BombAction(_currentTime, ActionType.PICK, phy.Id, 0, 0, 0));
                    _owner.PickBox(phy as Box);
                }
                else
                {
                    flag = true;
                }
            }
            if (flag)
            {
                Bomb();
            }
        }