public override void StartWithTarget(Transform target) { total = 0; nextDt = innerAction.Duration / duration; base.StartWithTarget(target); innerAction.StartWithTarget(target); }
public override void StartWithTarget(Transform target) { if (target == null) { Debug.Log("Spawn::startWithTarget error: target is nullptr!"); return; } if (one == null || two == null) { Debug.Log("Spawn::startWithTarget error: _one or _two is nullptr!"); return; } base.StartWithTarget(target); one.StartWithTarget(target); two.StartWithTarget(target); }