29 lines
504 B
C#
29 lines
504 B
C#
using UFS2.Gameplay;
|
|
using UnityEngine;
|
|
|
|
public class Chwytak : MonoBehaviour
|
|
{
|
|
public Rigidbody fishJoint;
|
|
|
|
public TextMesh displayText;
|
|
|
|
[HideInInspector]
|
|
public FishEntity currentFish;
|
|
|
|
private void Start()
|
|
{
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
if ((bool)FishEntity.CurrentFishInFight)
|
|
{
|
|
displayText.text = GameManager.Instance.ConvertWeight(FishEntity.CurrentFishInFight.Weight + Mathf.PingPong(Time.time * 0.2f, 0.1f));
|
|
}
|
|
}
|
|
|
|
public void Setup(Transform fish, Transform hand)
|
|
{
|
|
}
|
|
}
|