Пример #1
0
 void turn3()
 {
     SecoundHex.position = Vector3.Lerp(SecoundHex.position, pos2, Time.deltaTime * 15);
     SecoundHex.parent   = column2index;
     SecoundHex.SetSiblingIndex(index2);
     ThirdHex.position = Vector3.Lerp(ThirdHex.position, pos3, Time.deltaTime * 15);
     ThirdHex.parent   = column3index;
     ThirdHex.SetSiblingIndex(index3);
     FirstHex.position = Vector3.Lerp(FirstHex.position, pos1, Time.deltaTime * 15);
     FirstHex.parent   = column1index;
     FirstHex.SetSiblingIndex(index1);
     Invoke("SetClickability", 0.2f);
 }
Пример #2
0
 void turn2()
 {
     FirstTurn         = false;
     ThirdHex.position = Vector3.Lerp(ThirdHex.position, pos2, Time.deltaTime * 15);
     ThirdHex.parent   = column2index;
     ThirdHex.SetSiblingIndex(index2);
     FirstHex.position = Vector3.Lerp(FirstHex.position, pos3, Time.deltaTime * 15);
     FirstHex.parent   = column3index;
     FirstHex.SetSiblingIndex(index3);
     SecoundHex.position = Vector3.Lerp(SecoundHex.position, pos1, Time.deltaTime * 15);
     SecoundHex.parent   = column1index;
     SecoundHex.SetSiblingIndex(index1);
     Invoke("turn3", 0.2f);
 }