C# 클래스 playerHealth, Heracles

상속: MonoBehaviour
파일 보기 프로젝트 열기: TrinityUniversityGameDesign/Heracles 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
currenthealth int
destroyOnDeath bool
healthEnd UnityEngine.Texture2D
healthMiddle UnityEngine.Texture2D
healthStart UnityEngine.Texture2D
maxHealth int
respawnPos Vector2

공개 메소드들

메소드 설명
damagePlayer ( int damage ) : void
healPlayer ( int healing ) : void

비공개 메소드들

메소드 설명
OnGUI ( ) : void
OnTriggerEnter2D ( Collider2D otherCollider ) : void
Update ( ) : void

메소드 상세

damagePlayer() 공개 메소드

public damagePlayer ( int damage ) : void
damage int
리턴 void

healPlayer() 공개 메소드

public healPlayer ( int healing ) : void
healing int
리턴 void

프로퍼티 상세

currenthealth 공개적으로 프로퍼티

public int currenthealth
리턴 int

destroyOnDeath 공개적으로 프로퍼티

public bool destroyOnDeath
리턴 bool

healthEnd 공개적으로 프로퍼티

public Texture2D,UnityEngine healthEnd
리턴 UnityEngine.Texture2D

healthMiddle 공개적으로 프로퍼티

public Texture2D,UnityEngine healthMiddle
리턴 UnityEngine.Texture2D

healthStart 공개적으로 프로퍼티

public Texture2D,UnityEngine healthStart
리턴 UnityEngine.Texture2D

maxHealth 공개적으로 프로퍼티

public int maxHealth
리턴 int

respawnPos 공개적으로 정적으로 프로퍼티

public static Vector2 respawnPos
리턴 Vector2