1
0
mirror of https://github.com/Cardidi/dotween-upm-fork.git synced 2025-12-20 17:26:03 +08:00
2018-08-01 10:26:40 +02:00

27 lines
632 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class TempTests : BrainBase
{
public Transform target0;
public Transform target1;
IEnumerator Start()
{
Tween t0 = target0.DOBlendableLocalMoveBy(new Vector3(1, 2, 1), 2f);
Tween t1 = target1.DOBlendableLocalMoveBy(new Vector3(1, -2, 1), 2f);
yield return new WaitForSeconds(1);
t0.Kill();
t1.Goto(1.5f);
}
}