C# 클래스 UnlimitedShooter, SlashRunner

Represents a projectile shooter with a cooldown on how often it can shoot.
상속: Shooter
파일 보기 프로젝트 열기: matthewAURA/SlashRunner

공개 프로퍼티들

프로퍼티 타입 설명
cooldown double
shotPrefab GameObject

공개 메소드들

메소드 설명
Shoot ( ) : void

Shoots the projectile and restarts the cooldown if the cooldown is ready.

Start ( ) : void
Update ( ) : void

메소드 상세

Shoot() 공개 메소드

Shoots the projectile and restarts the cooldown if the cooldown is ready.
public Shoot ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

cooldown 공개적으로 프로퍼티

Used for keeping track of how often an object could shoot.
public double cooldown
리턴 double

shotPrefab 공개적으로 프로퍼티

Prefab that represents the projectile.
public GameObject shotPrefab
리턴 GameObject