- Horseshoes now create a cloud of sand when hitting the sand pit.
- Horseshoe score text should now sync. - Score text on horseshoes will hopefully not slowly drift away any longer. - Chicken sounds now load in background.
This commit is contained in:
@@ -99,11 +99,11 @@ public class Chimken : UdonSharpBehaviour
|
||||
if (_PlayerToFollow != null)
|
||||
{
|
||||
float DistanceToPlayer = Vector3.Distance(ChickenPositionLateral, PlayerPositionLateral);
|
||||
if (DistanceToPlayer <= 0.7f)
|
||||
if (AnimationState != ChickenState.Eat && DistanceToPlayer <= 0.7f)
|
||||
{
|
||||
SetAnimationState(ChickenState.Eat);
|
||||
}
|
||||
else
|
||||
else if (AnimationState == ChickenState.Eat && DistanceToPlayer >= 0.9f)
|
||||
{
|
||||
|
||||
SetAnimationState(DistanceToPlayer <= 2.75f ? ChickenState.Walk : ChickenState.Run);
|
||||
|
||||
Reference in New Issue
Block a user