コード例 #1
0
    /// <summary>
    /// Update is called every frame, if the MonoBehaviour is enabled.
    /// </summary>
    void Update()
    {
        fadeController.CheckIfCanvasGroupInteractable(islandUICanvasGroup);

        //TODO: possible change, not an amazing solution
        if (WorldController.Instance.currentIsland != null && !player.anchorDropped)
        {
            interactText.text = "Press E to drop anchor";
            interactText.DOFade(1, 0.5f);
        }
        else
        {
            interactText.DOFade(0, 0.5f);
        }
        //TODO: try to find a better solution than just calling this in update constantly
        fadeController.FadeCanvasGroup(fadingInIslandUI, islandUICanvasGroup, false);

        fadeController.FadeCanvasGroup(fadingInPanel, panelCanvasGroup, false, scene);
    }