mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2026-02-04 22:34:56 +08:00
18 lines
275 B
C#
18 lines
275 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using DG.Tweening;
|
|
|
|
public class TempPro : MonoBehaviour
|
|
{
|
|
public Rigidbody2D target;
|
|
|
|
void Start()
|
|
{
|
|
target.transform.DOScale(2, 1).SetLoops(-1);
|
|
}
|
|
|
|
void FixedUpdate()
|
|
{
|
|
target.position += new Vector2(0.03f, 0);
|
|
}
|
|
} |