private void Awake() { AdaptationType currAdpType = AdaptationType.Normal; if (mRatio <= 0.65f) { currAdpType = AdaptationType.Normal; } else { currAdpType = AdaptationType.Ipad; } for (int i = 0; i < Configs.Length; i++) { if (currAdpType == Configs[i].Type) { mCurrConfig = Configs[i]; } } }
public void setAdaptationType(AdaptationType adaptationType) { this.adaptationType = adaptationType; }
public void setType(AdaptationType Type) { this.Type = Type; }