using UnityEngine;
using System.Collections;
public class ColorPlayer : MonoBehaviour {
public int ID = 0;
public int servID = 0;
void Start () {
}
void Update () {
if(Input.GetKeyDown(KeyCode.Delete)){ID = ID +1;}
}
void OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info) {
int gj = 0;
if (stream.isWriting) {
gj = ID;
stream.Serialize(ref gj);
} else {
stream.Serialize(ref gj);
servID = gj;
}
}
}