Global Game Jam 2021
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
563 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class YeetHandle : MonoBehaviour
  5. {
  6. private BoxCollider m_handleArea;
  7. public bool held { get; set; }
  8. public GameObject lastHeld { get; set; }
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. m_handleArea = gameObject.AddComponent<BoxCollider>();
  13. m_handleArea.isTrigger = true;
  14. m_handleArea.size = new Vector3(2, 2, 2);
  15. }
  16. // Update is called once per frame
  17. void Update()
  18. {
  19. }
  20. }