Exemple #1
0
    void ManageCursorOnSceneLoad(Scene scene, LoadSceneMode mode)
    {
        // Snuck in a little lobby dots management here lol
        if (scene.buildIndex == (int)GamePhase.Lobbying)
        {
            lobbyDots = GameObject.FindObjectOfType <LobbyDots>();
        }

        if (scene.buildIndex == (int)GamePhase.Drawing || scene.buildIndex == (int)GamePhase.Lobbying)
        {
            Cursor.SetCursor(cursorTexture, Vector2.up * 10f, CursorMode.Auto);
        }
        else
        {
            Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
        }
    }
Exemple #2
0
 private void Start()
 {
     serverInfo = GameObject.FindObjectOfType <ServerInfo>();
     lobbyDots  = GameObject.FindObjectOfType <LobbyDots>();
 }