Ejemplo n.º 1
0
        public static void InvokeSyncData(GameObject player, ref int state, ref Vector2 v2, ref bool allow)
        {
            SyncData syncdata = SyncDataEvent;

            if (syncdata == null)
            {
                return;
            }

            SyncDataEvent ev = new SyncDataEvent
            {
                Player = Player.GetPlayer(player),
                State  = state,
                v2     = v2,
                Allow  = allow
            };

            syncdata.Invoke(ref ev);
            allow = ev.Allow;
        }