using System.Collections; using System.Collections.Generic; using UnityEngine; public class MySetting { private bool camera; private bool mic; private int ratio; private int fps; private int isActivate; private int fmss; public bool Camera { get => camera; set => camera = value; } public bool Mic { get => mic; set => mic = value; } public int Ratio { get => ratio; set => ratio = value; } public int Fps { get => fps; set => fps = value; } public int IsActivate { get => isActivate; set => isActivate = value; } public int Fmss { get => fmss; set => fmss = value; } public MySetting(bool camera, bool mic, int ratio, int fps, int isActivate, int fmss) { this.camera = camera; this.mic = mic; this.ratio = ratio; this.fps = fps; this.isActivate = isActivate; this.fmss = fmss; CustomInfo.isSendVideo = camera; CustomInfo.isSendAudio = mic; } }