C# 클래스 PlayerDrop, PaperCowboys

This is a dropped object in the scene that appears at random after an enemy dies. This can be a hat, bandanna, ammo or a weapon. Drops are NOT synchronized objects. They exist solely on the player's instance they were instantiated in, and no other player will see it. Objects with the PlayerDrop component are created by GameDirector.RPCGiveDrop which is invoked by the master client.
상속: MonoBehaviour
파일 보기 프로젝트 열기: Gamieon/PaperCowboys 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
iconRenderer Renderer
iconTransform Transform
itemDrop ItemDrop,
playerCharacter PlayerCharacter,
sndDropPickup UnityEngine.AudioClip

공개 메소드들

메소드 설명
FixedUpdate ( ) : void
GiveAmmoDropToPlayer ( ) : void

Called by GiveDropToPlayer to give ammo to the player

GiveCowboyHatToPlayer ( ) : void

Called by GiveDropToPlayer to give a hat to the player

GiveDropToPlayer ( ) : void

Called when the player runs into the drop

GiveMouthpieceToPlayer ( ) : void

Called by GiveDropToPlayer to give a mouthpiece (bandana) to the player

GiveWeaponDropToPlayer ( WeaponDirector, weapon, int defaultAmmo ) : void

Called by GiveDropToPlayer to give a weapon to the player

SelfDestruct ( ) : void

Called when the drop has been on the ground so long that it must be removed automatically. We can't just leave these in the scene forever.

Start ( ) : void

메소드 상세

FixedUpdate() 공개 메소드

public FixedUpdate ( ) : void
리턴 void

GiveAmmoDropToPlayer() 공개 메소드

Called by GiveDropToPlayer to give ammo to the player
public GiveAmmoDropToPlayer ( ) : void
리턴 void

GiveCowboyHatToPlayer() 공개 메소드

Called by GiveDropToPlayer to give a hat to the player
public GiveCowboyHatToPlayer ( ) : void
리턴 void

GiveDropToPlayer() 공개 메소드

Called when the player runs into the drop
public GiveDropToPlayer ( ) : void
리턴 void

GiveMouthpieceToPlayer() 공개 메소드

Called by GiveDropToPlayer to give a mouthpiece (bandana) to the player
public GiveMouthpieceToPlayer ( ) : void
리턴 void

GiveWeaponDropToPlayer() 공개 메소드

Called by GiveDropToPlayer to give a weapon to the player
public GiveWeaponDropToPlayer ( WeaponDirector, weapon, int defaultAmmo ) : void
weapon WeaponDirector, /// Weapon. ///
defaultAmmo int /// Default ammo. ///
리턴 void

SelfDestruct() 공개 메소드

Called when the drop has been on the ground so long that it must be removed automatically. We can't just leave these in the scene forever.
public SelfDestruct ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

프로퍼티 상세

iconRenderer 공개적으로 프로퍼티

The icon renderer.
public Renderer iconRenderer
리턴 Renderer

iconTransform 공개적으로 프로퍼티

The icon transform.
public Transform iconTransform
리턴 Transform

itemDrop 공개적으로 프로퍼티

The item that is being offered to the player.
public ItemDrop, itemDrop
리턴 ItemDrop,

playerCharacter 공개적으로 프로퍼티

The player character receiving the drop
public PlayerCharacter, playerCharacter
리턴 PlayerCharacter,

sndDropPickup 공개적으로 프로퍼티

The sound of the drop pickup.
public AudioClip,UnityEngine sndDropPickup
리턴 UnityEngine.AudioClip