Example #1
0
 private void Start()
 {
     DOTween.Init();
     gravity = Physics2D.gravity;
 }
 private void Start()
 {
     DOTween.Init(true, true, LogBehaviour.Verbose);
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     text.color = noAlpha;
     startPos   = transform.position;
     DOTween.Init();
 }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     DOTween.Init();
 }
Example #5
0
        protected override void Awake()
        {
            base.Awake();

            DOTween.Init();
        }
Example #6
0
 // Use this for initialization
 void Start()
 {
     DOTween.Init();
     transform = GetComponent <RectTransform>();
     image     = GetComponent <Image>();
 }
Example #7
0
 private void init()
 {
     Core.Setup();
     DOTween.Init(false, true, LogBehaviour.ErrorsOnly);
 }
Example #8
0
 public void Awake()
 {
     DOTween.Init(false, true, LogBehaviour.ErrorsOnly);
 }
Example #9
0
 public void onTweenTo(Transform Moveto)
 {
     DOTween.Init(false, true, LogBehaviour.ErrorsOnly);
     tParms = new TweenParams().SetDelay(this.waitTime).SetLoops(this.LoopTimes, this.loopType).SetEase(this.easeType).OnStart(onStartCallback).OnComplete(onCompleteCallback).SetId(this.name);
     onPlayTween(Moveto);
 }
Example #10
0
 void Start()
 {
     DOTween.Init();
     teamPortrait.sprite = teamUnlockAllImage [teamPos_Slot];
 }
Example #11
0
 void Start()
 {
     DOTween.Init(true, false, LogBehaviour.Verbose);
     spawnsParent = new GameObject("Spawn Container").transform;
 }
Example #12
0
 private void Awake()
 {
     DOTween.Init();
 }
Example #13
0
 // Use this for initialization
 void Start()
 {
     DOTween.Init(false, true, LogBehaviour.ErrorsOnly);
 }
Example #14
0
    void Start()
    {
        DOTween.Init();
        DOTween.defaultTimeScaleIndependent = true;

        ReInput.ControllerConnectedEvent    += (ControllerStatusChangedEventArgs obj) => GamepadsChange();
        ReInput.ControllerDisconnectedEvent += (ControllerStatusChangedEventArgs obj) => GamepadsChange();

        OnStartModeClick += ShowStaticModesLogos;
        GlobalVariables.Instance.OnRestartMode += ShowStaticModesLogos;

        GlobalVariables.Instance.OnGamepadDisconnected += GamepadDisconnected;
        GlobalVariables.Instance.OnMenu        += HideStaticModesLogos;
        GlobalVariables.Instance.OnStartMode   += ModeLogo;
        GlobalVariables.Instance.OnRestartMode += ModeLogo;
        GlobalVariables.Instance.OnPlayerDeath += OnPlayerDeath;
        GlobalVariables.Instance.OnPlaying     += () => eventSyst.SetSelectedGameObject(null);
        GlobalVariables.Instance.OnEndMode     += () =>
        {
            HidePassFightButton();
            StopCoroutine(PassFight());
        };

        GlobalVariables.Instance.OnMenu += () =>
        {
            playText.text = "PLAY";

            escBackButton.SetActive(true);

            HidePassFightButton();

            if (resumeButtons.anchoredPosition.x != resumeButtonsPositions.x)
            {
                resumeButtons.DOAnchorPosX(resumeButtonsPositions.x, animationDuration).SetEase(easeMenu);
            }
        };

        GlobalVariables.Instance.OnEndMode += () =>
        {
            playText.text = "PLAY";

            escBackButton.SetActive(true);

            if (resumeButtons.anchoredPosition.x != resumeButtonsPositions.x)
            {
                resumeButtons.DOAnchorPosX(resumeButtonsPositions.x, animationDuration).SetEase(easeMenu);
            }
        };

        GlobalVariables.Instance.OnPause += () =>
        {
            playText.text = "NEW";

            escBackButton.SetActive(false);

            if (resumeButtons.anchoredPosition.x != resumeButtonsPositions.y)
            {
                resumeButtons.DOAnchorPosX(resumeButtonsPositions.y, animationDuration).SetEase(easeMenu);
            }
        };


        resumeButtons.DOAnchorPosX(resumeButtonsPositions.x, 0).SetEase(easeMenu);

        mainMenu.SetActive(true);
        mainMenuScript = mainMenu.GetComponent <MenuComponent>();

        eventSyst      = GameObject.FindGameObjectWithTag("EventSystem").GetComponent <EventSystem>();
        mainCamera     = GameObject.FindGameObjectWithTag("MainCamera");
        cameraMovement = mainCamera.GetComponent <MenuCameraMovement>();

        backButtonsScript   = backButtons.transform.GetComponentsInChildren <BackButtonsFeedback>();
        resumeButtonsScript = resumeButtons.transform.GetComponentsInChildren <ResumeButtonsFeedback>();

        modesLogoScale = modesLogosCanvas.localScale.x;
        modesLogosCanvas.localScale = Vector3.zero;
        modesLogosCanvas.gameObject.SetActive(false);

        foreach (Transform t in staticModesLogosParent)
        {
            foreach (Transform c in t)
            {
                c.gameObject.SetActive(false);
            }
        }

        foreach (var m in Resources.FindObjectsOfTypeAll <MenuComponent> ())
        {
            m.SetupMenu();
        }

        for (int i = 0; i < elementsToEnable.Count; i++)
        {
            if (elementsToEnable[i] != null)
            {
                elementsToEnable[i].SetActive(true);
            }
        }

        StartCoroutine(WaitStartScreen());
    }
Example #15
0
 void Start()
 {
     DOTween.Init();
     hasTap = false;
 }
Example #16
0
 void Awake()
 {
     DOTween.Init();
     DOTween.logBehaviour = LogBehaviour.ErrorsOnly;
 }
 // Start is called before the first frame update
 void Start()
 {
     DOTween.Init(true, false, LogBehaviour.ErrorsOnly);
     blurMaterial = blurRenderer.material;
 }
Example #18
0
 private void Start()
 {
     DOTween.Init();
     LobbyMenu();
 }
Example #19
0
 // Use this for initialization
 void Start()
 {
     //初期化
     DOTween.Init(true, false, LogBehaviour.Default);
 }
Example #20
0
 private void Start()
 {
     DOTween.Init();
 }
Example #21
0
 // Use this for initialization
 void Start()
 {
     DOTween.Init();
     NetworkManager.Instance.Init();
     BattleManager.Instance.Init(mObj);
 }
Example #22
0
 // Start is called before the first frame update
 void Start()
 {
     DOTween.Init();
     this.canvasGroup = GetComponent <CanvasGroup>();
 }
Example #23
0
 void Start()
 {
     DOTween.Init(false, false, LogBehaviour.Default);
 }
Example #24
0
 private void Awake()
 {
     _instance = this;
     DOTween.Init(true, true, LogBehaviour.Default);
 }
Example #25
0
 public override void Load()
 {
     DOTween.Init();
 }
Example #26
0
 private void Start()
 {
     DOTween.Init();
     controlManager = ControlManager.Instance;
 }
Example #27
0
    // Use this for initialization
    void Start()
    {
        DOTween.Init(false, true, LogBehaviour.ErrorsOnly);

        gameObject.transform.DOScale(new Vector3(0.08f, 0.08f, 1f), 0.5f);
    }