private void ResetStartPoint(Transform startPoint, DragableAsset dragable) { startpointHoldList.Remove(startPoint); startpointList.Add(startPoint); dragable.transform.position = dragableOffScreen.position; ResetDrabables(dragable); }
private void ResetDrabables(DragableAsset dragable) { int r = StaticFunctions.RandomNumber(startpointList.Count - 1); dragable.transform.position = startpointList[r].position; dragable.lastStartPoint = startpointList[r]; startpointHoldList.Add(startpointList[r]); startpointList.RemoveAt(r); }
private void AddToDragableList(DragableAsset dragable) { dragableList.Add(dragable); dragable.transform.position = dragableOffScreen.position; }