void Awake()
    {
        MyDictionary  = FindObjectOfType <DictionaryManager>();
        ColourManager = FindObjectOfType <ColourManager>();
        CameraManager = FindObjectOfType <CameraBehaviour>();
        TimeManager   = FindObjectOfType <TimeManager>();
        GameManager   = FindObjectOfType <GameManager>();

        hintDict   = MyDictionary.PopulateHintDictionary();
        colourDict = ColourManager.PopulateColourDictionary();

        LevelColour      = colourDict ["LevelColour"];
        InProgressColour = colourDict ["InProgressColour"];
        NextColour       = colourDict ["NextColour"];
        ScoreColour      = colourDict ["ScoreColour"];

        currPlatformData = new ScoreDetails();
    }
Beispiel #2
0
    void Awake()
    {
        ColourManager = FindObjectOfType <ColourManager>();
        colorDict     = ColourManager.PopulateColourDictionary();

        PressedColour    = colorDict ["PressedColour"];
        TileColour       = colorDict ["TileColour"];
        BorderTileColour = colorDict ["BorderTileColour"];
        FlippedColour    = colorDict ["FlippedColour"];

        myRend = GetComponent <SpriteRenderer> ();
        if (this.tag == "tile")
        {
            myRend.color = TileColour;
        }
        else if (this.tag == "bordertile")
        {
            myRend.color = BorderTileColour;
        }
    }
 void Awake()
 {
     ColourManager = FindObjectOfType <ColourManager>();
     colourDict    = ColourManager.PopulateColourDictionary();
 }