C# 클래스 ShowInfoPanel, astrochimps

This class will create an object and put it as a child from another. It's show a text in the screen, right above the parent object, and then move it towards the top of the screen (like a score info from an old-school game). Useful, for instance, to show a player what resource an extractor is extracting and it's amount
상속: MonoBehaviour
파일 보기 프로젝트 열기: arcoelho01/astrochimps

공개 프로퍼티들

프로퍼티 타입 설명
mySkin UnityEngine.GUISkin

공개 메소드들

메소드 설명
OnGUI ( ) : void

Actually draws the text on screen

SetInfoText ( string newText, Vector3 position ) : void

Set the text to be shown and it's initial position

Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
BeingRenderedOnCamera ( ) : bool

Check if the object is being rendered in the screen. If not, there's no need to display the info text, right?

메소드 상세

OnGUI() 공개 메소드

Actually draws the text on screen
public OnGUI ( ) : void
리턴 void

SetInfoText() 공개 메소드

Set the text to be shown and it's initial position
public SetInfoText ( string newText, Vector3 position ) : void
newText string String with the text to be shown
position Vector3
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

mySkin 공개적으로 프로퍼티

public GUISkin,UnityEngine mySkin
리턴 UnityEngine.GUISkin