private void FixedUpdate() { U_Bool.BoolTrueMethord(byGameArea, ref quanpingFlag, () => { string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; U_ScreenCapture.Capture_Game(fileNmae, muti); byGameArea = false; }); U_Bool.BoolTrueMethord(byRect, ref quyuFlag, () => { string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_Rect(fileNmae, tarRect)); byRect = false; }); U_Bool.BoolTrueMethord(byUI, ref uiFlag, () => { Init_TarUI(); string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_RectTransform(fileNmae, tarRectTran)); byUI = false; }); U_Bool.BoolTrueMethord(byCamera, ref cameraFlag, () => { Init_TarCamera(); SetCameraCaptureSize(); string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_Camera(fileNmae, tarCamera, tarSize)); byCamera = false; }); }
private void Update() { U_Bool.BoolTrueMethord (to, ref toFlag, () => ToTar(toDuration)); U_Bool.BoolTrueMethord (from, ref fromFlag, () => ToOri(fromDuration)); }
public void Update() { //isFather,解除其所有子物体 U_Bool.BoolTrueMethord (removerChildren, ref isSonFlag, () => U_Transform.RemoveChildren(transform)); U_Bool.BoolTrueMethord (setParent, ref isFatherFlag, () => U_Transform.SetParent(transform, parent)); }
void Input_Bool() { U_Bool.MutexBoolTwoMethord ( ref chai_OneKeyAll, ref chaiFlag_OneKeyAll, () => StartCoroutine(C_Order()), ref zhuang_OneKeyAll, ref zhuangFlag_OneKeyAll, () => StartCoroutine(Z_Order()) ); U_Bool.MutexBoolTwoMethord ( ref chai_One, ref chaiFlag_One, () => StartCoroutine(C_One()), ref zhuang_One, ref zhuangFlag_One, () => StartCoroutine(Z_One()) ); U_Bool.MutexBoolTwoMethord ( ref chai_OneStepAll, ref chaiFlag_OneStepAll, () => StartCoroutine(C_All()), ref zhuang_OneStepAll, ref zhuangFlag_OneStepAll, () => StartCoroutine(Z_All()) ); }