C# Class gun, GrapplingHookFighters

Inheritance: MonoBehaviour, item
Show file Open project: PurdueSIGGD/GrapplingHookFighters Class Usage Examples

Public Properties

Property Type Description
bulletPhys UnityEngine.PhysicsMaterial2D
critGameObject GameObject
deleteEmptyTime float
emptySprite Sprite
playerid int
projectileGameObject GameObject
reticlePos Vector2
shellSprite Sprite
shootPoint Vector3
soundTag string
timeToShoot float
trigger bool

Public Methods

Method Description
Damage ( Transform t, Vector2 endPoint, Vector2 angle ) : void
Death ( ) : void
NotDeath ( ) : void
OnCollisionEnter2D ( Collision2D col ) : void
SetPlayerID ( int playerid ) : void
Start ( ) : void
Update ( ) : void
click ( ) : void
unclick ( ) : void

Private Methods

Method Description
GetOdds ( ) : bool

Method Details

Damage() public method

public Damage ( Transform t, Vector2 endPoint, Vector2 angle ) : void
t Transform
endPoint Vector2
angle Vector2
return void

Death() public method

public Death ( ) : void
return void

NotDeath() public method

public NotDeath ( ) : void
return void

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D col ) : void
col Collision2D
return void

SetPlayerID() public method

public SetPlayerID ( int playerid ) : void
playerid int
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

click() public method

public click ( ) : void
return void

unclick() public method

public unclick ( ) : void
return void

Property Details

bulletPhys public property

public PhysicsMaterial2D,UnityEngine bulletPhys
return UnityEngine.PhysicsMaterial2D

critGameObject public property

public GameObject critGameObject
return GameObject

deleteEmptyTime public property

public float deleteEmptyTime
return float

emptySprite public property

public Sprite emptySprite
return Sprite

playerid public property

public int playerid
return int

projectileGameObject public property

public GameObject projectileGameObject
return GameObject

reticlePos public property

public Vector2 reticlePos
return Vector2

shellSprite public property

public Sprite shellSprite
return Sprite

shootPoint public property

public Vector3 shootPoint
return Vector3

soundTag public property

public string soundTag
return string

timeToShoot public property

public float timeToShoot
return float

trigger public property

public bool trigger
return bool