C# Class Pongpector, pongpector

Inheritance: MonoBehaviour
Mostrar archivo Open project: abagames/pongpector Class Usage Examples

Public Properties

Property Type Description
bottomRacketX float
height int
isBottomRacketValid bool
isTopRacketValid bool
texture UnityEngine.Texture2D
topRacketX float
wallWidth int
width int

Public Methods

Method Description
AddBall ( Vector2 pos, Vector2 vel, float speed = 1 ) : void
AddBall ( float rankSpeed = 1 ) : void
AddScore ( ) : void
GetAnother ( int offset = 1 ) : Pongpector,
Miss ( ) : void
Start ( ) : void
TestRacketCollision ( Vector2 pos, Vector2 vel, float radius ) : bool
UpdateFrame ( ) : void

Method Details

AddBall() public method

public AddBall ( Vector2 pos, Vector2 vel, float speed = 1 ) : void
pos Vector2
vel Vector2
speed float
return void

AddBall() public method

public AddBall ( float rankSpeed = 1 ) : void
rankSpeed float
return void

AddScore() public method

public AddScore ( ) : void
return void

GetAnother() public method

public GetAnother ( int offset = 1 ) : Pongpector,
offset int
return Pongpector,

Miss() public method

public Miss ( ) : void
return void

Start() public method

public Start ( ) : void
return void

TestRacketCollision() public method

public TestRacketCollision ( Vector2 pos, Vector2 vel, float radius ) : bool
pos Vector2
vel Vector2
radius float
return bool

UpdateFrame() public method

public UpdateFrame ( ) : void
return void

Property Details

bottomRacketX public_oe property

public float bottomRacketX
return float

height public_oe property

public int height
return int

isBottomRacketValid public_oe property

public bool isBottomRacketValid
return bool

isTopRacketValid public_oe property

public bool isTopRacketValid
return bool

texture public_oe property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D

topRacketX public_oe property

public float topRacketX
return float

wallWidth public_oe property

public int wallWidth
return int

width public_oe property

public int width
return int