본문 바로가기
개발 (Game)/(2021) Unity RTS 포트폴리오

[Day 20-2] 핵, 요격 미사일 연구 및 국제 관계 참전 시 안정도 하락

by 진현개발일기 2021. 8. 1.

[2021. 08. 01, Sun]

 

 

위에 버튼을 클릭 했을 때 일정한 금액을 지불하고 핵 공격 혹은 요격 미사일을 연구할 것인지 공지를 띄워야한다.

When player click the buttons above, a notification has to pop up to ask for certain amount of treasury to active Nuclear(or Anti-ballistic Missile).

 

예전에 이용했던 notification 재사용 전용 변수다.
잔액 부족시 뜨는 문구이다.
금액을 지불할 경우 버튼을 SetActive(false)시킨다.

 

 

[ 핵, 요격미사일 리팩토링 ]

[ After Refactoring ]

 

 

[ 전쟁 참전시 정치 안정도 하락 ]

[ Decline in Political Stability after war engagement ]

 

전쟁에 참여하자마자 정치 안정도는 참여 횟수 *10 만큼 떨어진다. 턴을 4번 넘길 때마다 참여 횟수는 1씩 줄어든다.

if you jump on a war unilaterally via Int'l ties UI, it'd bring down the political stability depending on the number of engagement. every 4th pass of turn will decrease the number.

 

 

 

 

 

[ 턴 네 번 진행시 ]

[ after passing the turn 4times]

 

 

[ 핵 예상 모습 ]

[ footage of Nuclear launched ]

 

728x90