public static int AddView(KNetView view) { if (IsServer == false) { KNetLogger.LogError("KlivenNet.AddView() is only available on Server. On clients Views are synchronized automatically."); return(-1); } int id = Views.Count; view.Init(id); Views.Add(view); return(id); }
internal static void AddView(KNetView view, int id) { view.Init(id); Views.Add(view); }