Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - shawhu

Pages: [1]
DOTween & DOTween Pro / How to delete a gameobject after completion?
« on: March 22, 2016, 09:24:23 AM »
List<GameObject> mylist=GetMyList();
foreach(var item in mylist){
  item.transform.DOMove (position, 2, false).OnComplete(()=>{Destroy(item.gameobject);})

This doesn't work. When items complete one by one, they will always delete the last item in the list.

HI Guys,

I've been trying to use dotween and Simple Waypoint System. What I want to achieve is quite simple. I want to create a gameobject that follows a path and also moves.

the best analogy I can think of is a solar system. While the moon moves around the Earth. In this case the moon follows a dotween path. But the Earth is not stationary, it too moves around the sun. I also need the ability to change the path in the runtime so the object will follow the changed versions of the paths.

What is the best way to achieve this?

Pages: [1]