Skip to content

Commit 644e787

Browse files
authored
Merge pull request #47 from NafeeJ/master
Should have made class variables private. A little bit more documenta…
2 parents 2d73dab + c262d68 commit 644e787

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Assets/Scripts/2D/Colliders/ScreenEdgeColliders.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace UnityLibrary
1111
{
1212
public class ScreenEdgeColliders : MonoBehaviour
1313
{
14-
Camera cam;
15-
EdgeCollider2D edge;
16-
Vector2[] edgePoints;
14+
private Camera cam;
15+
private EdgeCollider2D edge;
16+
private Vector2[] edgePoints;
1717

1818
void Awake()
1919
{
@@ -31,6 +31,7 @@ void Awake()
3131
}
3232

3333
//Use this if you're okay with using the global fields and code in Awake() (more efficient)
34+
//You can just ignore/delete StandaloneAddCollider() if thats the case
3435
void AddCollider()
3536
{
3637
//Vector2's for the corners of the screen

0 commit comments

Comments
 (0)