43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using UnityEngine;
|
|
|
|
public class FReelEvents : MonoBehaviour
|
|
{
|
|
private FReel reel;
|
|
|
|
private void Start()
|
|
{
|
|
reel = base.transform.parent.GetComponent<FReel>();
|
|
}
|
|
|
|
public void JoinHandKablak()
|
|
{
|
|
// if (reel.reelAsset.animator.GetFloat("Reeling") > 0f)
|
|
// {
|
|
// reel.kablagOpenState = false;
|
|
// }
|
|
// else
|
|
// {
|
|
// reel.Owner.InteractiveMainHand(reel.reelAsset.koblagHandle);
|
|
// }
|
|
}
|
|
|
|
public void UnjoinHandKablak()
|
|
{
|
|
// if (!reel.isHandOnHandle)
|
|
// {
|
|
// reel.Owner.InteractiveMainHand(null);
|
|
// if (reel.reelAsset.animator.GetBool("Unlock"))
|
|
// {
|
|
// reel.kablagOpenState = true;
|
|
// }
|
|
//
|
|
// if (reel.reelAsset.animator.GetBool("Lock"))
|
|
// {
|
|
// reel.kablagOpenState = false;
|
|
// }
|
|
//
|
|
// reel.reelAsset.animator.SetBool("Unlock", false);
|
|
// reel.reelAsset.animator.SetBool("Lock", false);
|
|
// }
|
|
}
|
|
} |