Unity52 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 - 패키지 다운로드 후 임.. 2021. 8. 23. 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.. 2021. 8. 22. 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.. 2021. 8. 21. 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.. 2021. 8. 18. 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 .. 2021. 8. 17. 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 - 마.. 2021. 8. 16. 이전 1 ··· 3 4 5 6 7 8 9 다음 반응형