Exemplo n.º 1
0
 public void MoveToGrid(Grids gg, UnityAction half = null, UnityAction finish = null)
 {
     grid.chess = null;
     grid       = gg;
     transform.SetParent(gg.transform);
     gg.chess = this;
     gg.GetComponent <RectTransform>().SetAsLastSibling();
     StartCoroutine(MoveToGridIE(gg, half, finish));
 }