Example #1
0
    private void Awake()
    {
        if (TransitionManager.Instance == null)
        {
            Debug.LogWarning("ToolManager: No TransitionManager was found, so the zoom tool will not properly size content - transition manager is needed to identify when new content has loaded.");
        }

        smallestZoom = TargetMinZoomSize;
        panel        = GetComponent <ToolPanel>();

        if (panel == null)
        {
            Debug.LogError("ToolManager couldn't find ToolPanel. Hiding and showing of Tools unavailable.");
        }

        toolSounds = GetComponentInChildren <ToolSounds>();

        if (panel == null)
        {
            Debug.LogError("ToolManager couldn't find ToolSounds.");
        }
    }