Exemple #1
0
    public void FixedUpdatePlayerMovement()
    {
        if (!isDead)
        {
            shoot += Time.deltaTime;
            Jump();
            Move();
            UpdatePlayerAnimation();

            //
            UIinformationMgr.GetInst().SetPlayerHp(this.hp);
        }
    }
Exemple #2
0
    public static UIinformationMgr GetInst()
    {
        if (m_Inst == null)
        {
            m_Inst = FindObjectOfType(typeof(UIinformationMgr)) as UIinformationMgr;
            if (m_Inst == null)
            {
                Debug.Log("UIinformationMgr isn't exist");
            }
        }

        return(m_Inst);
    }
Exemple #3
0
    private void Update()
    {
        //1.미니맵표시
        roomMgr.UpdatePlayerPosinMinimap();

        //2.플레어이 키 입력
        player.UpdatePlayerMovement();

        //1.현재 방 몬스터 탐색
        roomMgr.rooms[roomMgr.StartYpos, roomMgr.StartXpos].CheckIsClearRoom();
        roomMgr.rooms[roomMgr.StartYpos, roomMgr.StartXpos].UpdateDungeon();
        roomMgr.FindClearRoom();



        //InGame UI 업데이트
        UIinformationMgr.GetInst().InGameUIupdate();
    }
Exemple #4
0
 //나중에 Update에 옮기자
 private void FixedUpdate()
 {
     attackTime += Time.deltaTime;
     UIinformationMgr.GetInst().SetBossHP(this.Hp, this.MaxHp);
 }