void iosChange()
{
if(Application.platform == RuntimePlatform.IPhonePlayer)
{
if(Screen.currentResolution.width==480)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas480x320;
}
}
if(Screen.currentResolution.width==1136)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas1136x640;
}
}
if(Screen.currentResolution.width==960)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas960x640;
}
}
if(Screen.currentResolution.width==1024)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas1024x768;
}
}
}
}
void androidChange()
{
if(Application.platform == RuntimePlatform.Android)
{
if(Screen.currentResolution.width<1024)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas800x480;
}
}
if(Screen.currentResolution.width>=1024&&Screen.currentResolution.width<1280)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas1024x768;
}
}
if(Screen.currentResolution.width>=1280)
{
if(Screen.currentResolution.height>=800)
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas1280x800;
}
}
else
{
for(int i=0;i<pairs.Length;i++)
{
pairs[i].atlasRef.replacement = pairs[i].atlas1280x720;
}
}
}
}
}