Added cementmachine with animated states
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user