示例#1
0
 public void Clear()
 {
     if (m_handle != null)
     {
         m_handle.Release();
         m_handle = null;
     }
 }
示例#2
0
 void Clear()
 {
     if (m_handle != null)
     {
         m_handle.Release();
         m_handle = null;
     }
     foreach (CameraTrigger t in m_triggers)
     {
         t.Clear();
     }
 }
示例#3
0
    public void Stop()
    {
        if (this == null)
        {
            return;       //可能已经被销毁
        }
        if (!m_isPlaying) //防止死锁
        {
            return;
        }

        //1 必须先把这个值设置正确,不然可能造成死锁
        m_isPlaying = false;

        //Remove和stop可能会互相调用,内部已经防止死锁,这里不用判断
        m_handle.Release();
        m_handle = null;

        //DoDestroy和stop可能会互相调用,内部已经防止死锁,这里不用判断
        FxDestroy.DoDestroy(this.gameObject);
    }