Unity45 [유니티] Photon 배우기 1. Window -> Photon Unity Networking using System.Collections; using System.Collections.Generic; using UnityEngine; public class NetManager : MonoBehaviour { void Start() { PUNConnect(); } void PUNConnect() { //만약 포톤 클라우드에 접속된 상태가 아니라면 if (!PhotonNetwork.connected) { //설정 파일에 설정된 정보를 기반으로 포톤 클라우드에 접속함 PhotonNetwork.ConnectUsingSettings("v1.0"); Debug.Log("PUN 클라우드에 접속을 시도함!!!"); } } //OnJoinedLo.. 2021. 6. 1. [유니티] RPG 게임 만들기2 1. Trail Renderer Width -> Color -> Element 설정 2. Player -> Window -> Animation -> Attack1 -> Add event 추가 3. 4. 추적 카메라 추가 5. 슬라임 프리펩 추가 쉐이더 변경 애니메이터 추가 6. 애니스테이트 활용 7. 공격 피격 콜라이더 추가 8. foreach in 사용 Add Layer -> Monster = Attack Layer Name using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterAttackController : MonoBehaviour { [SerializeField] priv.. 2021. 5. 28. [유니티] 3D 슈팅게임 3 1. 사운드 추가 GameManager -> Audio Source 컴포넌트 추가 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerHealth : MonoBehaviour { public int startHealth; //시작 체력 public int currentHealth; //현재 체력 public bool isDie; //사망 상태 public Animator animator; //애니메이터 public Slider healthSlider; //체력 슬라이더 public Image damageImage; // 피격 데미지 이미지 pr.. 2021. 5. 28. [유니티] 3D 슈팅게임 2 1. 점수 Canvas 추가 Create Empty UI -> Slider UI -> Image UI -> Text UI -> Image Color 255, 0, 0, 0 UI -> Text 알파값 0으로 2. 애니메이션 Create -> Empty Paratemter -> Trigger Canvas -> Window -> Animation 녹화버튼 3. 플레이어 피격 C# Script 이펙트 비활성화 추가 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerShot : MonoBehaviour { //발포 시간 관련 속성들 public float fireDelayTime; // 발.. 2021. 5. 27. 이전 1 2 3 4 5 ··· 12 다음