[이븐아이 게임톤] 개발 - 도감, UI

도감

  • 도감 몬스터, 스킬 아래 Text 변경 “Sound 준비예정” -> “Sound On 권장”
  • 도감 햄찌, 몬스터, 스킬 Sound 적용 완료

UI

  • 밧줄 애니메이션 추가
    • 설정UI, 전투선택UI, 프로필UI, 전투결과화면UI, 게임오버UI
    • DoTween 이용
  • 설정UI
    • 제작자화면, 출처화면 버튼만 추가
  • 전투 결과 화면 UI
    • 이미지 배치 수정
    • Chapter, Stage 표기 HUD 추가
  • UI ver4 일부 작업완료 (사진참고)
    • 미완료 내용
      • 제작자들, 출처 (내용 구현)
      • 프로필
      • 전투 선택창 별

Ladder.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;

public class Ladder : MonoBehaviour
{
    [SerializeField] GameObject myPanel;
    [SerializeField] RectTransform panelRect;
    [SerializeField] float topPosY, targetPosY;
    [SerializeField] float tweenDuration;

    void Awake()
    {
        panelRect.anchoredPosition = new Vector2(panelRect.anchoredPosition.x, topPosY);
    }

    //// 팝업
    //void Start()
    //{
    //    Intro();
    //}

    // 인게임UI
    private void OnEnable()
    {
        Intro();
    }

    private void OnDisable()
    {
        
    }

    void Intro()
    {
        panelRect.DOAnchorPosY(targetPosY, tweenDuration).SetUpdate(true);
    }

    public void Outro()
    {
        StartCoroutine(OutroCoroutine());
    }

    public IEnumerator OutroCoroutine()
    {
        Tweener tweener = panelRect.DOAnchorPosY(topPosY, tweenDuration);

        yield return tweener.WaitForCompletion();

        Debug.Log("Animation Complete");

        if (myPanel != null)
        {
            myPanel.SetActive(false);
            panelRect.anchoredPosition = new Vector2(panelRect.anchoredPosition.x, topPosY);
        }
    }
}

© 2023 Jinsoo Lee. All rights reserved.

Powered by Hydejack v9.1.6