Beispiel #1
0
    /// <summary>
    /// Initialises the script
    /// </summary>
    void Start()
    {
        m_manager     = GameModeManager.Get();
        m_backText    = GetComponent <UnityEngine.UI.Text>();
        m_frontText   = transform.FindChild("GameTimeFront").GetComponent <UnityEngine.UI.Text>();
        m_normalColor = m_frontText.color;

        if (Utilities.IsOpenLeveL(Utilities.GetLoadedLevel()))
        {
            gameObject.transform.parent.gameObject.SetActive(false);
        }
    }
Beispiel #2
0
    /// <summary>
    /// Initilaises the game syncher
    /// Code relying on the world goes here
    /// </summary>
    void Initialise()
    {
        m_nodes = Utilities.GetOrderedList <IslandDiscoveryNode>();
        if (m_nodes.Count == 0)
        {
            Debug.LogError("Could not find any island nodes");
        }

        m_network     = Utilities.GetNetworking();
        m_gameManager = GameModeManager.Get();
        m_startUpTime = Time.time;
        m_initialised = true;
    }
Beispiel #3
0
 /// <summary>
 /// Returns the state of the game
 /// </summary>
 static public GameState GetGameState()
 {
     return(GameModeManager.Get().GetState());
 }