C# 클래스 TurretSelectionMenu, Corsair

상속: MonoBehaviour
파일 보기 프로젝트 열기: Final-Parsec/Corsair 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
buttonPadding Vector2
layoutdimensions Vector2
turretSelectionPrefab GameObject
turretSprites Sprite>.IDictionary

공개 메소드들

메소드 설명
Start ( ) : void

Runs when the TurretSelectionMenu is created. Populates the panel with turret buttons.

메소드 상세

Start() 공개 메소드

Runs when the TurretSelectionMenu is created. Populates the panel with turret buttons.
public Start ( ) : void
리턴 void

프로퍼티 상세

buttonPadding 공개적으로 프로퍼티

The space between Buttons. The Button size is calculated using this number.
Put a zero (0) value to ignore this axis and use a calculated padding value. Must have a value.
public Vector2 buttonPadding
리턴 Vector2

layoutdimensions 공개적으로 프로퍼티

The layout of the Buttons. ex: 2x4, 1x8
public Vector2 layoutdimensions
리턴 Vector2

turretSelectionPrefab 공개적으로 프로퍼티

The Button prefab to use in the panel.
Must have a RectTransform attatched.
public GameObject turretSelectionPrefab
리턴 GameObject

turretSprites 공개적으로 프로퍼티

public IDictionary turretSprites
리턴 Sprite>.IDictionary