public void SetAdaption(AdaptionType _adaptionType, int _standardWidth, int _standardHeight, int _maxWidth, int _maxHeight) { adaptionType = _adaptionType; standardWidth = _standardWidth; standardHeight = _standardHeight; maxWidth = _maxWidth; maxHeight = _maxHeight; }
void Update() { if (ScreenWidth != Screen.width || ScreenHeight != Screen.height || last_adaptionType != adaptionType) { last_adaptionType = adaptionType; execAdaption(); } }