Ejemplo n.º 1
0
        public long AddCone(int time, int duration, Matrix4x4 transform, Vector3 pivot, double radius, double height, int segments, Color32 color, bool create_caps)
        {
            try
            {
                lock (operationLock)
                {
                    IReView_RemoteDebugRenderer RPCRDRProxy = RPC_Manager.Instance.Get_Client_Proxy <RPC_Client_Proxy_IReView_RemoteDebugRenderer>();
                    if (RPCRDRProxy != null)
                    {
                        long id = GetUniqueID();

                        RPCRDRProxy.AddCone(id, time, duration, transform, pivot, radius, height, segments, color, create_caps);

                        return(id);
                    }
                }
            }
            catch (Exception)
            {
                Disconnect();
            }

            return(-1);
        }