Exemple #1
0
    public void CmdRemoveComponentInChild(NetworkInstanceId ID)
    {
        GameObject obj        = NetworkServer.FindLocalObject(ID);
        LifeTime   lifeObject = obj.transform.GetComponentInChildren <LifeTime>();

        if (lifeObject != null)
        {
            CmdRemove(lifeObject.GetComponent <NetworkIdentity>().netId);
        }
    }