예제 #1
0
파일: Player.cs 프로젝트: ProGru/RuneWorld
    public void CmdRemoveComponentInChild(NetworkInstanceId ID)
    {
        GameObject obj        = NetworkServer.FindLocalObject(ID);
        LifeTime   lifeObject = obj.transform.GetComponentInChildren <LifeTime>();

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