fix vanish unhook
This commit is contained in:
parent
b50661c8d3
commit
8727aaceaa
@ -179,7 +179,8 @@ public void Stun(float duration){
|
||||
Invoke("UnStun", duration);
|
||||
}
|
||||
|
||||
public void Unhook(){
|
||||
public void Unhook(GameObject hookedObj){
|
||||
if(hookedObj.Equals(hookedTo))
|
||||
EndGrapple();
|
||||
}
|
||||
#endregion
|
||||
|
||||
@ -39,7 +39,7 @@ public class Vanisher : MonoBehaviour
|
||||
}
|
||||
|
||||
private void Vanish(){
|
||||
grapple?.Unhook();
|
||||
grapple?.Unhook(this.gameObject);
|
||||
gameObject.SetActive(false);
|
||||
Invoke("Appear", timeToAppear);
|
||||
isVanishing = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user