We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d73dab + c262d68 commit 644e787Copy full SHA for 644e787
Assets/Scripts/2D/Colliders/ScreenEdgeColliders.cs
@@ -11,9 +11,9 @@ namespace UnityLibrary
11
{
12
public class ScreenEdgeColliders : MonoBehaviour
13
14
- Camera cam;
15
- EdgeCollider2D edge;
16
- Vector2[] edgePoints;
+ private Camera cam;
+ private EdgeCollider2D edge;
+ private Vector2[] edgePoints;
17
18
void Awake()
19
@@ -31,6 +31,7 @@ void Awake()
31
}
32
33
//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
35
void AddCollider()
36
37
//Vector2's for the corners of the screen
0 commit comments