i have a 6 button with image of a rocket assigned to them, on my main screen i need alternate buttons to point different direction[image of rocket]. so i came up with the the following
//Button1
GUI.Button(new Rect(posX,posY,Scalex,ScaleY),"PLAY",m_GuiSkin.customStyles[2]) ;
//Button2
GUI.Button(new Rect(posX,posY,-Scalex,ScaleY,"settings",m_GuiSkin.customStyles[2]) ;
But the button 2 dose not take click or hover…
//SETTINGS BUTTON
if(GUI.Button(new Rect(Screen.width * (0.84f/6.55f),Screen.height * (1.54f/6.3f),
Screen.width * (3.744f/6.55f),Screen.height * (0.5967f/6.3f)),"SETTINGS",m_GuiSkin.customStyles[2]) )
{
if(m_Sound)
BtnClick_Audio.audio.Play();
m_Gamestate = GameState.Settings;
}
//HIGHSCORE BUTTON
if(GUI.Button(new Rect(Screen.width * (0.84f/6.55f),Screen.height * (2.28f/6.3f),
-Screen.width * (3.744f/6.55f),Screen.height * (0.5967f/6.3f)),"HIGHSCORE",m_GuiSkin.customStyles[2]) )
{
if(m_Sound)
BtnClick_Audio.audio.Play();
m_Gamestate = GameState.HighScore;
}