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

26 lines
653 B
C#

// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2018/06/01 10:55
// License Copyright (c) Daniele Giardini
// This work is subject to the terms at http://dotween.demigiant.com/license.php
using UnityEngine;
#pragma warning disable 1591
namespace DG.Tweening.CustomYieldInstructions
{
public class WaitForCompletion : CustomYieldInstruction
{
public override bool keepWaiting {
get {
return _tween.active && !_tween.isComplete;
}
}
readonly Tween _tween;
public WaitForCompletion(Tween tween)
{
_tween = tween;
}
}
}