예제 #1
0
        public static void Process(ulong sender, params object[] args)
        {
            //Debug.Log("On Rec Connect Req Response");
            //Core.net.OnConnectRequestResponse(sender, (int)args[0], (int)args[1]);
            int prefabId   = (int)args[0];
            int networkId  = (int)args[1];
            int owner      = (int)args[2];
            int controller = (int)args[3];
            int newOwner   = (int)args[4];

            NetworkEntity e = Core.net.GetEntity(owner, networkId);

            if (e != null)
            {
                e.OnChangeOwner(newOwner);
            }
        }