Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • J jyb-games
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • students
  • jyb-games
  • Wiki
  • 21.07.16

Last edited by jang dong hyeok Jul 19, 2021
Page history
This is an old version of this page. You can view the most recent version or browse the history.

21.07.16

7월 16일

Defense_Game 만들기

타워건설 취소 및 레이저 타워 건설

타워 건설 취소

  • TowerSpawner.cs에의 ReadyToSpawnTower함수가 호출될 때 OnTowerCancelSystem코루틴을 호출
    image

  • SpawnTower함수가 호출될 때 OnTowerCancelSystem코루틴을 멈춤
    image

  • OnTowerCancelSystem함수
    image

  • TowerWeapon.cs에서 WeaponType을 선언하고 WeaponState에서 AttackToTarget을 TryAttackCannon으로 교체
    image

  • 헤더 어트리뷰트로 변수를 구분
    image
    image

  • FindClosestAttackTarget함수 정의
    image

  • IsPossibleToAttackTarget함수 정의
    image

  • SearchTarget 함수의 대상탐색 코드를 FindClosestAttackTarget함수를 호출하고 attackTarget에 저장
    image

  • AttackToTarget을 TryAttackCannon으로 교체
    image

  • LaserTower로 사용할 Tower02를 만듬
    image

  • Tower01과 마찬가지로 SpawnPoint를 조정
    image

  • LaserEffect Material을 만들고 기본설정을 해줌(노란색)
    image

  • LaserEffect 오브젝트를 만들고 LineRenderer 컴포넌트를 추가하고 Material에 LaseEffect 추가
    image

  • LaserHitEffect Material을 만들고 image를 입힌후 색을 조절
    image

  • LaseHitEffect Particle System을 생성한 후 Material로 LaserHitEffect Material을 입힘
    image

  • Tower02를 프리팹으로 만들고 Hierarchy에서 삭제

  • ButtonTower01Cannon을 복제 후 ButtonTower02Laser로 이름을 바꿈
    image
    image

  • FollowTower01프리팹을 복제 후 FollowTower02로 이름을 바꾸고 보여지는 스프라이트를 바꿈
    image

  • FollowTower02의 scale등을 조정
    image
    ======================================================================
    image

Clone repository
  • 21.06.28
  • 21.06.30
  • 21.07.02
  • 21.07.05
  • 21.07.07
  • 21.07.09
  • 21.07.12
  • 21.07.14
  • 21.07.16
  • 21.07.19
  • 21.07.26 (1)
  • 21.07.26
  • 21.07.28 DH
  • 21.07.28 SJ
  • 21.07.28
View All Pages