Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.tag == "Player")
        {
            TransitionCamera.transform.position = Char.transform.position;
            TransitionCamera.SetActive(true);

            scaleTransitionMask.transform.localScale = scaleCharMask.transform.localScale;

            Char.SetActive(false);
            Char.transform.position = FinalPosition;

            positionCamera.DOMove(FinalPosition, Delay).SetEase(ease);
            ControllerTime.instance.InterTimeButton(false);
            Invoke("EndMoving", Delay);
        }
    }
Exemplo n.º 2
0
 private void EndMoving()
 {
     ControllerTime.instance.InterTimeButton(true);
     TransitionCamera.SetActive(false);
     Char.SetActive(true);
 }