Added tree grwoth camera animation, fixed combat camera state, fixed many errors in the console

This commit is contained in:
2024-12-28 10:28:50 +01:00
parent e75b093317
commit f59a127a4e
10 changed files with 872 additions and 831 deletions

View File

@@ -217,7 +217,7 @@ namespace Beyond
animationName = growinAnimation;
leavesMaterials.ForEach(material => material.DOColor(initialColor, leavesColorName, 1f));
}
//Player.Instance.PlayerInput.ChangeCameraStateWithLerp("Default");
StartCoroutine(ShowFruitsCoroutine());
//animLayer = 0;
@@ -599,7 +599,7 @@ namespace Beyond
(size - startingSize));
}
}
Player.Instance.PlayerInput.ChangeCameraStateWithLerp("Default");
treeAnimator.enabled = false;
}
@@ -608,6 +608,8 @@ namespace Beyond
/// </summary>
public void GrowTree()
{
Player.Instance.PlayerInput.ChangeCameraStateWithLerp("Tree");
switch (currentTreeState)
{
case TreeState.Empty: