Example #1
0
        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);
        }
Example #2
0
 internal static void AddView(KNetView view, int id)
 {
     view.Init(id);
     Views.Add(view);
 }