aboutsummaryrefslogtreecommitdiffstats
path: root/Assets/Scripts/RopeThrowPrototype.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/RopeThrowPrototype.cs')
-rw-r--r--Assets/Scripts/RopeThrowPrototype.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/Assets/Scripts/RopeThrowPrototype.cs b/Assets/Scripts/RopeThrowPrototype.cs
deleted file mode 100644
index d828cca..0000000
--- a/Assets/Scripts/RopeThrowPrototype.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class RopeThrowPrototype : MonoBehaviour
-{
- public GameObject hook;
- public bool ropeExists = false;
-
- GameObject currentHook;
-
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
- if (Input.GetMouseButtonDown(0))
- {
- if (!ropeExists)
- {
- Vector2 clickLocation = Camera.main.ScreenToWorldPoint(Input.mousePosition);
-
- currentHook = (GameObject)Instantiate(hook, clickLocation, Quaternion.identity);
- ropeExists = true;
- }
- else
- {
- Destroy(currentHook);
- ropeExists = false;
- }
- }
- }
-}