Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

#pragma warning disable 0219
            GameplayDisplay sGameplayDisplay = target as GameplayDisplay;
#pragma warning restore 0219
        }
Exemplo n.º 2
0
    //===================================
    //===================================
    //		INITIALIZATION
    //===================================
    //===================================

    void Start()
    {
        // connect to external modules
        guiComponents   = GetComponent <GuiComponents>();
        levelManager    = GetComponent <LevelManager>();
        scoringSystem   = GetComponent <ScoringSystem>();
        inputControls   = GetComponent <InputControls>();
        overlayPanel    = GetComponent <OverlayPanel>();
        infoPanel       = GetComponent <InfoPanel>();
        feedingDisplay  = GetComponent <FeedingDisplay>();
        gameplayDisplay = GetComponent <GameplayDisplay>();

        // additional initialization
        SetGuiState("guiStateStartApp1");
        infoPanelVisible    = true;
        infoPanelTransStart = Time.time - 100000;
        customGUISkin.button.normal.textColor = new Color(0.90f, 0.65f, 0f, 1f);
        customGUISkin.button.hover.textColor  = new Color(0.99f, 0.75f, 0.21f, 1f);
    }