public void Init(int seed)
 {
     this.seed = seed;
     Random.InitState(seed);
     state = Random.state;
 }
 public void Write(Random.State value)
 {
     writer.Write(JsonUtility.ToJson(value));
 }