void Start() { SoundManager.SOUNDS.playSound(SoundManager.UI_CLICK,CameraCollider.MATHIUS_EARTH_CAM); stats = MasterController.BRAIN.sm(); gs = GAMESTATE.RESUME; MUI = gameObject.GetComponent<Mathius_UI>(); }
void Start() { TOP_PLAYER_COUNT = 10; content = new ArrayList(); highscore = new ArrayList(TOP_PLAYER_COUNT); FILENAME = Application.persistentDataPath + "/highscores.txt"; _gameOver_score = 0; ourScore = GameObject.Find("G1").GetComponent("Mathius_UI") as Mathius_UI; load (); }
void Start() { SoundManager.SOUNDS.playSound(SoundManager.UI_CLICK,MasterController.UI_CAMERA_ALT); gui = new GUIManager(thisMetalGUISkin); gui.OnClick += HandleGuiOnClick; gui.CreateGUIObject(NEXT, "Next", new Rect(8*(Screen.width/10) ,(95*(Screen.height/100)) ,(2*(Screen.width/10)) ,(10*(Screen.height/100))), GUIType.Button, "box"); pc = MasterController.BRAIN.pci(); pc.onGesturePerformed += HandlePconGesturePerformed; stats = MasterController.BRAIN.sm(); gs = 0; MUI = gameObject.GetComponent<Mathius_UI>(); creditTimer = 20.0f; gui.connect(NEXT,NEXT,NEXT,NEXT,NEXT); gui.pointer = NEXT; }