public MenuOption(string name, Texture2D selectedTexture, Texture2D notSelectedTexture) { this.name = name; this.description = ""; this.selectedTexture = selectedTexture; this.notSelectedTexture = notSelectedTexture; this.selectedNameColour = Color.White; this.notSelectedNameColour = Color.White; menuOptionState = MenuOptionState.NotSelected; }
public MenuOption(string name, string description, Color selectedNameColour, Color notSelectedNameColour, string selectedTextureFileName, string notSelectedTextureFileName) { this.name = name; this.description = description; selectedTexture = GameClass.LoadTextureData(selectedTextureFileName); notSelectedTexture = GameClass.LoadTextureData(notSelectedTextureFileName); this.selectedNameColour = selectedNameColour; this.notSelectedNameColour = notSelectedNameColour; menuOptionState = MenuOptionState.NotSelected; }
public void SetState (int state) { _state = (MenuOptionState)state; Load (); }