Added cementmachine with animated states
This commit is contained in:
8
Assets/Scripts/StateMachines/CementFactory.meta
Normal file
8
Assets/Scripts/StateMachines/CementFactory.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f3d9ad0c1618ed342b04c0f2297109b1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
using Core.SaveLoad;
|
||||
using UnityEngine;
|
||||
|
||||
public class MachineWorkingBehavior : MonoBehaviour
|
||||
{
|
||||
public AppleMachine stateMachine;
|
||||
|
||||
|
||||
public void WorkingAnimationDone()
|
||||
|
||||
{
|
||||
stateMachine.ChangeState("Exploding");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 782eafa5850294b4d91ca3632d93ab19
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 584ce0be859902849a74d3d2f13d0e64
|
||||
Reference in New Issue
Block a user