mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-26 02:00:54 -05:00
Final Touches
>King's Placement function teaked slightly
This commit is contained in:
parent
c75832d545
commit
981e254e8b
|
|
@ -28,7 +28,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8397943440757562192}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -273.3493, y: 24.995426, z: 520.2409}
|
||||
m_LocalPosition: {x: -455.52185, y: 34.993595, z: 676.1095}
|
||||
m_LocalScale: {x: 40, y: 40, z: 40}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,8 @@ public class KingPlace : MonoBehaviour {
|
|||
Place = Slime;
|
||||
break;
|
||||
}
|
||||
//Create the object that will follow the Mouse
|
||||
//Instantiate(Place);
|
||||
//Layout the grid
|
||||
Grid.GetComponent<GridReveal>().GridSwitch(true);
|
||||
|
||||
|
|
@ -70,10 +72,10 @@ public class KingPlace : MonoBehaviour {
|
|||
//if (child.transform.position.z >= Place.transform.position.x && child.transform.position.z - 20 <= Place.transform.position.x)
|
||||
//{
|
||||
// Debug.Log("Help" + child.transform.position.z);
|
||||
Instantiate(Place);//Place the object (Snap it up and to Grid)
|
||||
//Place the object (Snap it up and to Grid)
|
||||
Instantiate(Place);
|
||||
//break;
|
||||
//}
|
||||
}
|
||||
Grid.GetComponent<GridReveal>().GridSwitch(false); //Switch off the grid
|
||||
Placing = false;//Stop placing
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user