Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Assets/Scripts/LevelControl/ItemText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void Start()
itemTextPanel.SetActive(false);
clickPosition = new Vector2(0f, 0f);
// cameraScript = Camera.main.GetComponent<CameraFollowScript>();
GetComponent<BoxCollider2D>().size = new Vector3(.5f, .2f, 0);
}

void Update()
Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/Player/ItemPickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ void Start()
itemTextPanel.SetActive(false);
clickPosition = new Vector2(0f, 0f);
//cameraScript = Camera.main.GetComponent<CameraFollowScript>();
//gets attached object collider and widens range
GetComponent<BoxCollider2D>().size = new Vector3(.5f, .2f, 0);
}
void Update()
{
Expand Down
3 changes: 3 additions & 0 deletions Assets/Scripts/Player/PlayerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ void Start() //what happens as soon as player is created
initialColor = sprite.color;
slowMo = false; //slowMo starts out as false since the player hasn't hit the button yet

//increase boxcollider size for cover,
GameObject.Find("Cover").GetComponent<BoxCollider2D>().size = new Vector3(.5f, .2f, 0);

// Formula to calculate the hunter duration
Debug.Log("Stage Level: " + Application.loadedLevel);
if(Application.loadedLevelName == "Ending Level" || Application.loadedLevelName == "Tutorial Stage")
Expand Down