void Start () { backGround = transform.FindChild( "Back" ).gameObject;// Grab the background of this card theCamera = GameObject.Find( "Main Camera" );// Grab the camera BSC = theCamera.GetComponent<BaseSceneClass>();// Grab the base scene class backGround.renderer.material.color = grey; // Set the background game object to Grey }
void Start () { // Initialization of the main menu showListLanguage = false; hideMenuGUI = false; theScene = gameObject.GetComponent<BaseSceneClass>(); dataBase = gameObject.GetComponent<ConversionClass>(); // The setting of the GUI style for Pop up calls theListStyle.fontSize = ( BaseSceneClass.ourScreen.width / 100f < 16f ) ? 16 : ( int ) BaseSceneClass.ourScreen.width / 100; theListStyle.normal.textColor = Color.white; theListStyle.padding.left = theListStyle.padding.right = theListStyle.padding.top = theListStyle.padding.bottom = 4; if ( sample1 == null ) theListStyle.onHover.background = theListStyle.hover.background = new Texture2D( 2, 2 ); else { theListStyle.normal.background = sample1; theListStyle.onHover.background = theListStyle.hover.background = sample2; } }
//sets all the variables for loading the vocab type private void Fill ( string slevel, BaseSceneClass.VocabType stype ) { hideActivityMenuGui = true; selectedVocabType = true; level = slevel; type = stype; loader = 15; }