Exemplo n.º 1
0
        public void Dispose()
        {
            MediaPlayer.CloseVideo();

            MediaPlayer     = null;
            DisplayUGUI     = null;
            FinishedPlaying = null;
            m_GGraph.Dispose();
        }
Exemplo n.º 2
0
 public override void Clear()
 {
     base.Clear();
     if (img_box != null)
     {
         img_box.Dispose();
     }
     img_box = null;
 }
Exemplo n.º 3
0
    //type  0正常 1条件
    //	public int[] GetData (int type)
    //	{
    //		if (type == GUIDE_NORMAL)
    //			return new int[]{ this.guide11, this.guide12 };
    //		else
    //			return new int[]{ this.guide21, this.guide22 };
    //	}

    public void Clear()
    {
        if (v != null && ps != null && ps.parent != null)
        {
            if (curData.ContainsKey("addp") && curData ["addp"].ToString() == "1")
            {
                v.x -= ps.x;
                v.y -= ps.y;
            }
            if (v_pre != null && v_pre.x > 0)
            {
                v.x = v_pre.x;
                v.y = v_pre.y;
            }
            v.touchable = true;
            ps.AddChild(v);
            v  = null;
            ps = null;
        }
        else if (v != null && p != null && p.parent != null)
        {
            if (curData.ContainsKey("addp") && curData ["addp"].ToString() == "1")
            {
                if (curCheck == "101:1" || curCheck == "101:2")
                {
                    v.x = v.x - p.x - p.parent.x - p.parent.parent.x;
                    v.y = v.y - p.y - p.parent.y - p.parent.parent.y;
                }
                else
                {
                    v.x -= p.x;
                    v.y -= p.y;
                }
            }
            v.touchable = true;
            if (v_pre != null && v_pre.x > 0)
            {
                v.x = v_pre.x;
                v.y = v_pre.y;
            }
            p.AddChild(v);
            v = null;
        }
        add.RemoveChildren(0, -1, true);
        if (hand != null)
        {
            view.RemoveChild(hand);
            hand.Dispose();
            hand = null;
        }
        this.stage.visible = false;
    }
Exemplo n.º 4
0
    public override void Dispose()
    {
        for (int i = 0; i < 4; i++)
        {
            if (_objects[i] != null)
            {
                _objects[i].Dispose();
            }
        }
        _mask1.Dispose();
        _mask2.Dispose();
        if (_softShadow != null)
        {
            _softShadow.Dispose();
        }

        base.Dispose();
    }