Added cementmachine with animated states

This commit is contained in:
2025-12-01 18:36:17 +01:00
parent 789ffcf929
commit e9ba3b7431
10 changed files with 146 additions and 846 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f3d9ad0c1618ed342b04c0f2297109b1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,14 @@
using Core.SaveLoad;
using UnityEngine;
public class MachineWorkingBehavior : MonoBehaviour
{
public AppleMachine stateMachine;
public void WorkingAnimationDone()
{
stateMachine.ChangeState("Exploding");
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 782eafa5850294b4d91ca3632d93ab19

View File

@@ -0,0 +1,22 @@
using UnityEngine;
using DG.Tweening;
public class MissingPartVisualBehavior : MonoBehaviour
{
public float targetScale;
public float scaleDuration;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
transform.DOScale(targetScale, scaleDuration).SetLoops(-1, LoopType.Yoyo);
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 584ce0be859902849a74d3d2f13d0e64