Commit 34955267 authored by Gerard Gascón's avatar Gerard Gascón
Browse files

feat: blood spawn test

parent 76c60f15
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ PluginImporter:
      enabled: 1
      settings:
        CPU: x86_64
        DefaultValueInitialized: true
        OS: Windows
  - first:
      Standalone: Win64
+4897 −0

File changed.

Preview size limit exceeded, changes collapsed.

+6 −2
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ namespace View.UI {
		[SerializeField] private Animation growAnimation;
		[SerializeField] private Animation endAnimation;

		[SerializeField] private ParticleSystem growParticle;

		private void Start() {
			_click = FindObjectOfType<Dependencies>().ExpressionClick;
			_customInput = FindObjectOfType<Dependencies>().CustomInput;
@@ -47,9 +49,11 @@ namespace View.UI {
		}

		public void UpdateView(int score, float growPercentage) {
			if (animator.CurrentAnimation == "Rosa_Grow") {
			if (animator.CurrentAnimation == "Rosa_Grow")
				animator.PlayUntil(IsLastGrowState(score, growPercentage) ? 1f : growPercentage);
			}

			growParticle.Play();

			text.text = score.ToString();
			_firstUpdate = false;
		}
+8 −0
Original line number Diff line number Diff line
fileFormatVersion: 2
guid: 236a21e95fadf384a9df39ee5ce0a64b
folderAsset: yes
DefaultImporter:
  externalObjects: {}
  userData: 
  assetBundleName: 
  assetBundleVariant: 
+130 B
Loading image diff...
Loading