분류 전체보기
08. Photon - 실습 1 (6) Photon Nickname
🔷 실습 1 (6) - 닉네임 설정 🔶 닉네임 설정 - UI 세팅 using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; using Photon.Realtime; using UnityEngine.UI; using TMPro; public class PhotonManager : MonoBehaviourPunCallbacks { private readonly string gameVersion = "v1.0"; private string userId = "Ojui"; public TMP_InputField userIdText; public TMP_InputField roomNameText; p..
07. Photon - 실습 1 (5) Photon Voice
🔷 실습 1 (5) - 포톤 보이스를 통해 보이스 채팅 구현 🔶 photon 홈페이지 - 새 어플리케이션 생성 - 종류 : Photon Voice - 어플리케이션 ID 복사 🔶 Unity https://assetstore.unity.com/packages/tools/audio/photon-voice-2-130518 Photon Voice 2 | 음악 | Unity Asset Store Get the Photon Voice 2 package from Exit Games and speed up your game development process. Find this & other 음악 options on the Unity Asset Store. assetstore.unity.com - 패키지 다운로드 후 임..
06. Photon - 실습 1 (4) Lobby, Custom Property
🔷 실습 1 (4) - 로비에서 플레이어 색상을 정하고 게임씬으로 넘어가기 🔶 Lobby - Level_1 씬을 복사 - 이름을 Lobby로 변경 - Player 프리팹 하이어라키 창으로 드래그&드롭 - position, rotation - 컴포넌트 5개 삭제 - player : Unpack Completely - position - Clear Flags : Solid Color - Background - UI 수정 using System.Collections; using System.Collections.Generic; using UnityEngine; using Photon.Pun; using Photon.Realtime; public class PhotonManager : MonoBehaviourP..
01. Azure CosmosDB Settings
🔷 Azure 세팅 Firebase는 Universal Windows Platform을 지원하지 않는다. Firebase로 개발을 다 해놓고 빌드가 되지 않아서, 다른 데이터베이스 서비스를 찾아 공부했다. 다음부터는 해당 플랫폼을 지원하는지 확인부터하고 개발을 시작하자. 🔶 Documents https://docs.microsoft.com/ko-kr/azure/cosmos-db/sql-api-get-started 자습서: .NET 콘솔 앱을 빌드하여 Azure Cosmos DB SQL API 계정에서 데이터 관리 자습서: C# 콘솔 애플리케이션을 사용하여 Azure Cosmos DB SQL API 리소스를 만드는 방법을 알아봅니다. docs.microsoft.com https://docs.microsof..
00. Azure 체험계정 활성화
🔷 Azure 무료계정 활성화 Azure CosmosDB를 복습 겸 포스팅하려고 들어가보니 체험계정이 막혔다. 체험기간이 12개월로 알고 있었기에 의아함을 느끼며 찾아보니, 30일 사용 후에 무조건 비활성화가 되는 시스템이었다. 다시 활성화를 시키기 위해서는 구독 업그레이드를 해야한다고 한다. 🔶 Documents https://docs.microsoft.com/ko-kr/azure/cost-management-billing/manage/subscription-disabled 비활성화된 Azure 구독 다시 활성화 사용하지 않도록 설정한 Azure 구독을 다시 활성화하는 방법을 설명합니다. docs.microsoft.com - 30일 이후 구독을 비활성화한다는 내용 > 구독 업그레이드 필요 https:/..
05. Photon - 실습 1 (3) Score
🔷실습 1 (3) - Item 랜덤 생성 - Item 먹으면 Score 획득 🔶 Item 먹으면 effect 발생 - 적당한 effect import - 맘에 드는 effect 골라서 03.Prefabs 폴더 아래로 Prefab화 - 스크립트 생성 : ItemManager - Item_1, Item_2, Item_3 게임 오브젝트에 ItemManager 스크립트 추가 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ItemManager : MonoBehaviour { public GameObject collFx; void Start() { } private void OnCollisionEn..
04. Photon - 실습 1 (2) 플레이어 Material 바꾸기
🔷 실습 1 (2) - 플레이어 Material 바꾸기 - MonoBehaviourPunCallbacks - PunRPC / GetComponent().RPC(nameof(함수명), RpcTarget.AllViaServer, 파라미터); - public override void OnPlayerEnteredRoom(Player newPlayer) - Player가 물체에 부딪혔을 때 넘어지지 않도록 Freeze Rotation 체크 - Sphere 생성 : Item_1 - Position : 0, 0.6, 0 - Material 생성해서 적용 - 위와 같이 Item_2, Item_3 생성 using System.Collections; using System.Collections.Generic; using ..
03. Photon - 실습 1 (1) player 생성, 위치 동기화
🔷 실습 1 room에 입장하면서 player 생성 위치 동기화 🔶 Photon 기본 세팅 - 포톤 어플리케이션 생성 - 아이디 복사 - 유니티 PUN2 패키지 임포트 - 아이디 붙여넣기 🔷 이동 로직 - 빈게임오브젝트 생성 : PhotonManager - 스크립트 생성 : PhotonManager - 게임오브젝트에 스크립트 추가 - 큐브 생성 : Floor - Scale : 10, 0.1, 10 - 빈게임오브젝트 생성 : GameManager - 스크립트 생성 : GameManager - 빈게임오브젝트에 스크립트 추가 - 빈게임 오브젝트 생성 : SpawnPointGroup - Position : 0, 0.6, 0 - 하위에 빈게임오브젝트 생성 : SpawnPoint_1, SpawnPoint_2 - 마..