void Start()
 {
     // Init components.
     uniformCostsManager = FindObjectOfType <UniformCostManager>();
     // Show mobile specific text on Android devices.
     if (levelProperties.levelName == "Uniform Cost - Level 3" && Application.platform == RuntimePlatform.Android)
     {
         professorController.NextSequence();
     }
 }
Beispiel #2
0
    // Use this for initialization
    void Awake()
    {
        //TODO: replace with either a generic manager or a check if dijkstra is needed
        LevelProperties levelProp = FindObjectOfType <LevelProperties>();

        if (levelProp.gameType == LevelProperties.GameType.Dijkstra)
        {
            dijkstraManager = GameObject.FindGameObjectWithTag("Dijkstra").GetComponent <DijkstraManager>();
        }
        else if (levelProp.gameType == LevelProperties.GameType.UniformCost)
        {
            uniformCostManager = GameObject.FindGameObjectWithTag("UniformCosts").GetComponent <UniformCostManager>();
        }
        // UI text field for dijkstra routing table information.
        //routingTableTextField = GetComponentInChildren<Text>();
    }
 void Start()
 {
     // Init components.
     uniformCostsManager = FindObjectOfType <UniformCostManager>();
 }