Exemple #1
0
    public bool UnRegisterProjectile(IProjectile proj)
    {
        int ind = m_I.m_ActiveProjs.IndexOf(proj);

        if (ind != -1)
        {
            m_I.m_ActiveProjs.RemoveAt(ind);
        }
        proj.Reset();
        proj.Activation(false);
        //Debug.Log("proj="+ proj);
        I.m_PoolsProjectile.Return(proj.GetData.TypeProjectile, proj);
        return(ind != -1);
    }