C# Class Pongpector, pongpector

Inheritance: MonoBehaviour
Show file 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 property

public float bottomRacketX
return float

height public property

public int height
return int

isBottomRacketValid public property

public bool isBottomRacketValid
return bool

isTopRacketValid public property

public bool isTopRacketValid
return bool

texture public property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D

topRacketX public property

public float topRacketX
return float

wallWidth public property

public int wallWidth
return int

width public property

public int width
return int