MySetting.cs 976 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class MySetting
  5. {
  6. private bool camera;
  7. private bool mic;
  8. private int ratio;
  9. private int fps;
  10. private int isActivate;
  11. private int fmss;
  12. public bool Camera { get => camera; set => camera = value; }
  13. public bool Mic { get => mic; set => mic = value; }
  14. public int Ratio { get => ratio; set => ratio = value; }
  15. public int Fps { get => fps; set => fps = value; }
  16. public int IsActivate { get => isActivate; set => isActivate = value; }
  17. public int Fmss { get => fmss; set => fmss = value; }
  18. public MySetting(bool camera, bool mic, int ratio, int fps, int isActivate, int fmss)
  19. {
  20. this.camera = camera;
  21. this.mic = mic;
  22. this.ratio = ratio;
  23. this.fps = fps;
  24. this.isActivate = isActivate;
  25. this.fmss = fmss;
  26. CustomInfo.isSendVideo = camera;
  27. CustomInfo.isSendAudio = mic;
  28. }
  29. }