상속: Object
예제 #1
0
 // Use this for initialization
 void Start()
 {
     animate = 60.0f;
     m = MasterController.BRAIN.m();
     //gameObject.GetComponent<BoxCollider>().enabled = false;
     m.set_invisible(true);
 }
예제 #2
0
    public ScoreManager(Mathius instance, PreferencesManager prefs)
    {
        _wrong = 0;
        _correct = 0;
        _streak = 0;
        _streakCriteria = 0;
        _streak_build = 0;
        _isOnStreak = false;
        _equation = "";
        _mathius = instance;
        _prefs = prefs;

        _problems_to_clear = _prefs.get_numWin();
        _bonus_points = 0;
    }
예제 #3
0
 void Awake()
 {
     //This is the start of the Game. Period.
     Application.targetFrameRate = 60;
     DontDestroyOnLoad(gameObject);
     Application.LoadLevel("SplashScreen");
     BRAIN = gameObject.GetComponent<MasterController>();
     pHelper = new PreferencesManager();
     sbHelper = new SkyBoxManager(_skyBoxes);
     pcHelper = new PCInterface(gameObject);
     mHelper = new Mathius(_mathius);
     tHelper = new TileManager(pHelper);
     sHelper = new ScoreManager(mHelper,pHelper);
     hHelper = new HighScoreManager();
     aHelper = new Alien(_alien);
     iHelper = new HighScoreInitials(3);
     UI_MAIN_MENU = new Vector3(0.0f,1.0f,-13.75854f);
     UI_CAMERA_ALT = new Vector3(0.0f,1.0f,-10.0f);
     pcHelper.set_using_PCI(pHelper.get_usePerceptual());
 }