blob: 1a675cee164297a0b6f1eb97d657097e3f8bf35d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using UnityEngine;
namespace MontanaJohns.Items
{
public class Whip : Active
{
public GameObject hook;
public bool ropeExists = false;
GameObject currentHook;
// Update is called once per frame
public override void Use()
{
if (!ropeExists)
{
// Vector2 clickLocation = Mouse.current.position;
// currentHook = (GameObject)Instantiate(hook, clickLocation, Quaternion.identity);
ropeExists = true;
}
else
{
Destroy(currentHook);
ropeExists = false;
}
}
}
}
|