Beispiel #1
0
    private void Start()
    {
        float target = PlatformInstance.IsMobile() ? targetMobile : targetDesktop;

        Debug.Log("target " + target);
        rt.DOAnchorPosY(target, 1.0f, false).SetLoops(-1, LoopType.Yoyo);
    }
    //private CanvasGroup canvas;
    #endregion

    private void Awake()
    {
        //canvas = pauseOverlay.GetComponent<CanvasGroup>();
        //pauseOverlay.SetActive(false);
        SubscribeMeForEndgame();
        previousScene             = -1;
        started                   = true;
        actualScene               = SceneManager.GetActiveScene().buildIndex;
        SceneManager.sceneLoaded += OnChangeScene;
        UIMobile.SetActive(false);
        UIDesktop.SetActive(false);
        if (PlatformInstance.IsMobile())
        {
            UIMobile.SetActive(true);
        }
        else
        {
            UIDesktop.SetActive(true);
        }
    }