Beispiel #1
0
        public static void Initialize()
        {
            _kHandler = GetComponent <KeyboardHandler>();
            _gHandler = GetComponent <GamePadHandler>();
            _cHandler = GetComponent <ControlsHandler>();

            var mapData = KeyboardData.Load();

            _aKey      = mapData.AButtonKey;
            _bKey      = mapData.BButtonKey;
            _startKey  = mapData.StartButtonKey;
            _selectKey = mapData.SelectButtonKey;
        }
Beispiel #2
0
    private void CreateInfoPane(float x, float y)
    {
        GetGameObject(new Vector3(x, y), "infoPane", Resources.Load <Sprite>(SpritePaths.BigOptionInfoBox));
        goBack = GetGoBackImage(x, y);
        goBack.SetActive(false);
        FontData font = PD.mostCommonFont.Clone();

        font.scale    = 0.06f;
        headerText    = GetMeshText(new Vector3(x, y + 1.7f), "honk", font);
        font.scale    = 0.035f;
        funFactText   = GetMeshText(new Vector3(x, y + 1.0f), "honk", font);
        optionsScreen = gameObject.AddComponent <OptionsHandler>();
        optionsScreen.InitializeMembers(headerText, PD);
        controlsScreen = gameObject.AddComponent <ControlsHandler>();
        controlsScreen.InitializeMembers(headerText, PD);
        accessibilityScreen = gameObject.AddComponent <AccessibilityHandler>();
        accessibilityScreen.InitializeMembers(headerText, PD);
    }
Beispiel #3
0
 void Awake()
 {
     instance = this;
 }